Commit 0a6a8e38 authored by Nicolas Dufresne's avatar Nicolas Dufresne Committed by GStreamer Marge Bot
Browse files

v4l2slh264dec: Fix slice header bit size calculation

The emulation bytes need to be removed as bytes, not bit. This fixes
decoding issues with files that have emulation bytes with the Cedrus

Part-of: <!2471>
parent 5c508358
Pipeline #384116 waiting for manual action with stages
in 1 minute and 1 second
......@@ -652,8 +652,8 @@ gst_v4l2_codec_h264_dec_fill_pred_weight (GstV4l2CodecH264Dec * self,
static guint
get_slice_header_bit_size (GstH264Slice * slice)
return 8 * slice->nalu.header_bytes
+ slice->header.header_size - slice->header.n_emulation_prevention_bytes;
return 8 * slice->nalu.header_bytes + slice->header.header_size
- 8 * slice->header.n_emulation_prevention_bytes;
static void
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