mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-09 17:44:14 +00:00
flacparse: don't error out on invalid minimum_blocksize value in streaminfo header
We don't use it, so may just as well accept an invalid value of 0 here, which is likely inconsequential anyway. https://bugzilla.gnome.org/show_bug.cgi?id=650691
This commit is contained in:
parent
d122ea0122
commit
e0cadab5c2
1 changed files with 2 additions and 4 deletions
|
@ -756,17 +756,15 @@ gst_flac_parse_handle_streaminfo (GstFlacParse * flacparse, GstBuffer * buffer)
|
|||
if (!gst_bit_reader_get_bits_uint16 (&reader, &flacparse->min_blocksize, 16))
|
||||
goto error;
|
||||
if (flacparse->min_blocksize < 16) {
|
||||
GST_ERROR_OBJECT (flacparse, "Invalid minimum block size: %u",
|
||||
GST_WARNING_OBJECT (flacparse, "Invalid minimum block size: %u",
|
||||
flacparse->min_blocksize);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!gst_bit_reader_get_bits_uint16 (&reader, &flacparse->max_blocksize, 16))
|
||||
goto error;
|
||||
if (flacparse->max_blocksize < 16) {
|
||||
GST_ERROR_OBJECT (flacparse, "Invalid maximum block size: %u",
|
||||
GST_WARNING_OBJECT (flacparse, "Invalid maximum block size: %u",
|
||||
flacparse->max_blocksize);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!gst_bit_reader_get_bits_uint32 (&reader, &flacparse->min_framesize, 24))
|
||||
|
|
Loading…
Reference in a new issue