flacparse: fix (multiple channel) frame parsing

This commit is contained in:
Mark Nauwelaerts 2010-01-05 16:35:52 +01:00 committed by Tim-Philipp Müller
parent a18863c8ec
commit 84e0aae90c

View file

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