mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 01:31:03 +00:00
tsdemux: Fix reading of extended Opus channel configuration
Argument evaluation order is implementation defined in C, and gcc is evaluating right-to-left (works) while clang is evaluating left-to-right (does not work). Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4210>
This commit is contained in:
parent
0dc5d5ecb1
commit
3851c2da12
1 changed files with 3 additions and 2 deletions
|
@ -1601,11 +1601,12 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream,
|
|||
guint8 stream_count_minus_one, coupled_stream_count;
|
||||
gint stream_count_minus_one_len, coupled_stream_count_len;
|
||||
gint channel_mapping_len, i;
|
||||
guint remaining_bytes;
|
||||
|
||||
remaining_bytes = gst_byte_reader_get_remaining (&br);
|
||||
gst_bit_reader_init (&breader,
|
||||
gst_byte_reader_get_data_unchecked
|
||||
(&br, gst_byte_reader_get_remaining
|
||||
(&br)), gst_byte_reader_get_remaining (&br));
|
||||
(&br, remaining_bytes), remaining_bytes);
|
||||
|
||||
stream_count_minus_one_len = ceil (_gst_log2 (channels));
|
||||
if (!gst_bit_reader_get_bits_uint8 (&breader,
|
||||
|
|
Loading…
Reference in a new issue