vaapipostproc: update PAR when rotating
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Mon, 15 Jul 2019 22:33:07 +0000 (15:33 -0700)
committerU. Artie Eoff <ullysses.a.eoff@intel.com>
Mon, 15 Jul 2019 22:33:15 +0000 (15:33 -0700)
When rotating, swap pixel-aspect-ratio during
negotiation.

Fixes #181

gst/vaapi/gstvaapipostprocutil.c

index e07c0f7..81f89c4 100644 (file)
@@ -184,6 +184,7 @@ _fixate_frame_size (GstVaapiPostproc * postproc, GstVideoInfo * vinfo,
       case GST_VIDEO_ORIENTATION_UL_LR:
       case GST_VIDEO_ORIENTATION_UR_LL:
         G_PRIMITIVE_SWAP (gint, from_w, from_h);
+        G_PRIMITIVE_SWAP (gint, from_par_n, from_par_d);
       default:
         break;
     }