mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
flacparse: ignore bad headers if we have a valid STREAMINFO header
If we run into any header parsing issues and we have a valid STREAMINFO header already, don't error out, but just stop header parsing and try to find some audio frames. https://bugzilla.gnome.org/show_bug.cgi?id=684701
This commit is contained in:
parent
49cc719809
commit
7c41f42eec
1 changed files with 7 additions and 1 deletions
|
@ -1551,7 +1551,13 @@ gst_flac_parse_parse_frame (GstBaseParse * parse, GstBaseParseFrame * frame,
|
||||||
GST_MEMDUMP_OBJECT (parse, "bad header data", map.data, size);
|
GST_MEMDUMP_OBJECT (parse, "bad header data", map.data, size);
|
||||||
|
|
||||||
gst_buffer_unref (sbuffer);
|
gst_buffer_unref (sbuffer);
|
||||||
goto header_parsing_error;
|
|
||||||
|
/* error out unless we have a STREAMINFO header */
|
||||||
|
if (flacparse->samplerate == 0 || flacparse->bps == 0)
|
||||||
|
goto header_parsing_error;
|
||||||
|
|
||||||
|
/* .. in which case just stop header parsing and try to find audio */
|
||||||
|
is_last = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_last) {
|
if (is_last) {
|
||||||
|
|
Loading…
Reference in a new issue