Commit 16e99999 authored by Tristan Matthews's avatar Tristan Matthews

flac: fix extradata clamping check

parent 7659b4d8
...@@ -389,7 +389,7 @@ static void ProcessHeader( decoder_t *p_dec ) ...@@ -389,7 +389,7 @@ static void ProcessHeader( decoder_t *p_dec )
if (i_extra > 42 && !memcmp(p_dec->fmt_in.p_extra, header, 4)) if (i_extra > 42 && !memcmp(p_dec->fmt_in.p_extra, header, 4))
i_extra = 42; i_extra = 42;
else if (i_extra > 34 && memcmp(p_dec->fmt_in.p_extra, header, 4)) else if (i_extra > 34 && !memcmp(p_dec->fmt_in.p_extra, header, 4))
i_extra = 34; i_extra = 34;
switch (i_extra) { switch (i_extra) {
......
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