summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2020-05-21 13:42:47 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2020-05-21 13:51:57 +0800
commit20ce08aa2304a1d1123897b6c60538d9f2dc9579 (patch)
treec927db1ab553dae94e8dd7ca6164e12fc2632f26 /gst-libs
parent6b2f83522f965be0848cd00c2b25458477e9555a (diff)
vaapiencoder_h264: set direct_spatial_mv_pred_flag to true by default
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>
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder_h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
index f98949a2..153c5d90 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
@@ -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;