vaapipostproc: update PAR when rotating

When rotating, swap pixel-aspect-ratio during
negotiation.

Fixes #181
This commit is contained in:
U. Artie Eoff 2019-07-15 15:33:07 -07:00
parent f1aa0cc5e0
commit 4e4ca03bc1

View 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;
}