mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
mpegvideoparse: Do not ignore start code at the end of buffer
This commit is contained in:
parent
19f7bd470d
commit
045e8bb506
1 changed files with 5 additions and 5 deletions
|
@ -334,13 +334,13 @@ gst_mpeg_video_parse (const guint8 * data, gsize size, guint offset)
|
|||
codoffsize->offset = gst_byte_reader_get_pos (&br) + offset;
|
||||
|
||||
rsize = gst_byte_reader_get_remaining (&br);
|
||||
if (rsize <= 0) {
|
||||
g_free (codoffsize);
|
||||
break;
|
||||
if (rsize == 0) {
|
||||
/* if there are no more bytes after the start code set the size to -1 */
|
||||
off = -1;
|
||||
} else {
|
||||
off = scan_for_start_codes (&br, 0, rsize);
|
||||
}
|
||||
|
||||
off = scan_for_start_codes (&br, 0, rsize);
|
||||
|
||||
codoffsize->size = off;
|
||||
|
||||
ret = g_list_prepend (ret, codoffsize);
|
||||
|
|
Loading…
Reference in a new issue