mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
dcaparse: do not accept header with invalid channel count
https://bugzilla.gnome.org/show_bug.cgi?id=737928
This commit is contained in:
parent
65536f25dd
commit
61ba778347
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ gst_dca_parse_parse_header (GstDcaParse * dcaparse,
|
|||
if (chans < G_N_ELEMENTS (channels_table))
|
||||
*channels = channels_table[chans] + ((lfe) ? 1 : 0);
|
||||
else
|
||||
*channels = 0;
|
||||
return FALSE;
|
||||
|
||||
if (depth)
|
||||
*depth = (marker == 0x1FFFE800 || marker == 0xFF1F00E8) ? 14 : 16;
|
||||
|
|
Loading…
Reference in a new issue