mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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 driver. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2471>
This commit is contained in:
parent
5c5083586d
commit
0a6a8e3869
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue