flacparse: fix (multiple channel) frame parsing

This commit is contained in:
Mark Nauwelaerts 2010-01-05 16:35:52 +01:00
parent 79acb0b4cc
commit 9009899176

View file

@ -208,7 +208,7 @@ gst_flac_parse_get_frame_size (GstFlacParse * flacparse, GstBuffer * buffer,
goto error;
else
flacparse->channels = tmp + 1;
} else if (tmp <= 10 && flacparse->channels != 2) {
} else if (tmp <= 10) {
if (flacparse->channels && 2 != flacparse->channels)
goto error;
else