mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
parent
bc6549a108
commit
11bdf1def1
1 changed files with 5 additions and 1 deletions
|
@ -588,8 +588,12 @@ gst_flac_parse_frame_is_valid (GstFlacParse * flacparse, GstBuffer * buffer,
|
|||
goto need_more;
|
||||
}
|
||||
|
||||
/* mind unknown framesize */
|
||||
search_start = MAX (2, flacparse->min_framesize);
|
||||
search_end = MIN (size, flacparse->max_framesize + 9 + 2);
|
||||
if (flacparse->max_framesize)
|
||||
search_end = MIN (size, flacparse->max_framesize + 9 + 2);
|
||||
else
|
||||
search_end = size;
|
||||
search_end -= 2;
|
||||
|
||||
remaining = size;
|
||||
|
|
Loading…
Reference in a new issue