msdkav1enc: We should not set other alignment here
authorMengkejiergeli Ba <mengkejiergeli.ba@intel.com>
Tue, 20 Sep 2022 08:21:24 +0000 (16:21 +0800)
committerMengkejiergeli Ba <mengkejiergeli.ba@intel.com>
Tue, 20 Sep 2022 08:25:15 +0000 (16:25 +0800)
According to spec, we have 32bit alignment for height (progressive) and
16bit alignment for width, so here we don't need to add other alignment
settings.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3050>

subprojects/gst-plugins-bad/sys/msdk/gstmsdkav1enc.c

index a27647b..80c6b36 100644 (file)
@@ -143,11 +143,6 @@ gst_msdkav1enc_configure (GstMsdkEnc * encoder)
       break;
   }
 
-  encoder->param.mfx.FrameInfo.Width =
-      GST_ROUND_UP_128 (encoder->param.mfx.FrameInfo.CropW);
-  encoder->param.mfx.FrameInfo.Height =
-      GST_ROUND_UP_32 (encoder->param.mfx.FrameInfo.CropH);
-
   /* Always turn on this flag for AV1 */
   /* encoder->param.mfx.LowPower = MFX_CODINGOPTION_ON; */