flacdec: bail on reserved value

Now that we look at the right bits, we can test against the reserved
value as we do for other fields.

https://bugzilla.gnome.org/show_bug.cgi?id=650960
This commit is contained in:
Vincent Penquerc'h 2011-08-16 15:32:07 +01:00 committed by Tim-Philipp Müller
parent 64beef4610
commit e09eb95a5f

View file

@ -424,7 +424,7 @@ gst_flac_dec_scan_got_frame (GstFlacDec * flacdec, guint8 * data, guint size,
GST_LOG_OBJECT (flacdec, GST_LOG_OBJECT (flacdec,
"got sync, bs=%x,sr=%x,ca=%x,ss=%x,pb=%x", bs, sr, ca, ss, pb); "got sync, bs=%x,sr=%x,ca=%x,ss=%x,pb=%x", bs, sr, ca, ss, pb);
if (sr == 0x0F || ca >= 0x0B || ss == 0x03 || ss == 0x07) { if (bs == 0 || sr == 0x0F || ca >= 0x0B || ss == 0x03 || ss == 0x07) {
return FALSE; return FALSE;
} }