summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder_h264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
index 7dd7ed7f..fd57a3f0 100644
--- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
+++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
@@ -3099,8 +3099,6 @@ init_picture_refs (GstVaapiDecoderH264 * decoder,
break;
}
- ret = ret && exec_picture_refs_modification (decoder, picture, slice_hdr);
-
switch (slice_hdr->type % 5) {
case GST_H264_B_SLICE:
num_refs = 1 + slice_hdr->num_ref_idx_l1_active_minus1;
@@ -3120,6 +3118,8 @@ init_picture_refs (GstVaapiDecoderH264 * decoder,
break;
}
+ ret = ret && exec_picture_refs_modification (decoder, picture, slice_hdr);
+
mark_picture_refs (decoder, picture);
return ret;