vaapiencoder_h264: set direct_spatial_mv_pred_flag to true by default
authorHaihao Xiang <haihao.xiang@intel.com>
Thu, 21 May 2020 05:42:47 +0000 (13:42 +0800)
committerHaihao Xiang <haihao.xiang@intel.com>
Thu, 21 May 2020 05:51:57 +0000 (13:51 +0800)
This flag is set to true by default in both MediaSDK and FFmpeg-vaapi,
so let's align this plugin with other libraries / softwares.

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

gst-libs/gst/vaapi/gstvaapiencoder_h264.c

index f98949a..153c5d9 100644 (file)
@@ -2310,7 +2310,7 @@ add_slice_headers (GstVaapiEncoderH264 * encoder, GstVaapiEncPicture * picture,
         sizeof (slice_param->delta_pic_order_cnt));
 
     /* only works for B frames */
-    slice_param->direct_spatial_mv_pred_flag = FALSE;
+    slice_param->direct_spatial_mv_pred_flag = TRUE;
     /* default equal to picture parameters */
     slice_param->num_ref_idx_active_override_flag = reflist_0_count
         || reflist_1_count;