Commit 3c975c0f authored by Rafaël Carré's avatar Rafaël Carré

Revert "flac: fix extradata clamping check"

This reverts commit 16e99999.

We use short flac extra format if it does *not* start with the header.
Thus we need not to add ! in front of memcmp
parent 4a1493db
......@@ -389,7 +389,7 @@ static void ProcessHeader( decoder_t *p_dec )
if (i_extra > 42 && !memcmp(p_dec->fmt_in.p_extra, header, 4))
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;
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