Commit 3df1018b authored by He Junyan's avatar He Junyan Committed by GStreamer Merge Bot

libs: decoder: h264: Add ref flags for splited field.

When split one frame into fields, the second field should also
copy the reference flags.

Part-of: <!333>
parent 593f6650
Pipeline #151339 waiting for manual action with stages
in 15 seconds
......@@ -397,6 +397,9 @@ gst_vaapi_frame_store_split_fields (GstVaapiFrameStore * fs, gboolean tff)
second_field = gst_vaapi_picture_h264_new_field (first_field);
if (!second_field)
return FALSE;
gst_vaapi_picture_h264_set_reference (second_field,
GST_VAAPI_PICTURE_FLAGS (first_field) & GST_VAAPI_PICTURE_FLAGS_REFERENCE,
FALSE);
gst_vaapi_picture_replace (&fs->buffers[fs->num_buffers++], second_field);
gst_vaapi_picture_unref (second_field);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment