mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
matroskamux: remove duplicate check
We want 1 or 2 streamheaders, the check if (bufarr->len != 1 && bufarr->len != 2) is enough. Not need to check if bufarr->len is <= 0 or > 255.
This commit is contained in:
parent
bd701b8ee5
commit
40aa27b788
1 changed files with 1 additions and 3 deletions
|
@ -1616,9 +1616,7 @@ opus_streamheader_to_codecdata (const GValue * streamheader,
|
|||
goto wrong_type;
|
||||
|
||||
bufarr = g_value_peek_pointer (streamheader);
|
||||
if (bufarr->len <= 0 || bufarr->len > 255) /* one header, and count stored in a byte */
|
||||
goto wrong_count;
|
||||
if (bufarr->len != 1 && bufarr->len != 2)
|
||||
if (bufarr->len != 1 && bufarr->len != 2) /* one header, and count stored in a byte */
|
||||
goto wrong_count;
|
||||
|
||||
/* Opus headers are not in-band */
|
||||
|
|
Loading…
Reference in a new issue