Commit 3e932156 authored by Matej's avatar Matej Committed by Sebastian Dröge

dcaparse: do not accept header with invalid channel count

https://bugzilla.gnome.org/show_bug.cgi?id=737928
parent bc860e83
......@@ -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;
......
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