mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
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:
parent
64beef4610
commit
e09eb95a5f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue