mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
jpegparse: avoid infinite loop when resyncing
This commit is contained in:
parent
7abe0a56af
commit
0a26e138dd
1 changed files with 1 additions and 0 deletions
|
@ -406,6 +406,7 @@ gst_jpeg_parse_get_image_length (GstJpegParse * parse)
|
|||
if (noffset < 0) {
|
||||
/* ignore and continue resyncing until we hit the end
|
||||
* of our data or find a sync point that looks okay */
|
||||
offset++;
|
||||
continue;
|
||||
}
|
||||
GST_DEBUG ("found sync at 0x%x", offset + 2);
|
||||
|
|
Loading…
Reference in a new issue