mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
mpegvideoparse: Parser fails to split some frames
This commit is contained in:
parent
23e312872e
commit
19f7bd470d
1 changed files with 1 additions and 6 deletions
|
@ -537,9 +537,6 @@ gst_mpegv_parse_handle_frame (GstBaseParse * parse,
|
|||
|
||||
GST_LOG_OBJECT (mpvparse, "next start code at %d", codoffsz->offset);
|
||||
|
||||
if (codoffsz->size < 0)
|
||||
break;
|
||||
|
||||
ret = gst_mpegv_parse_process_sc (mpvparse, buf, codoffsz->offset,
|
||||
codoffsz->type);
|
||||
|
||||
|
@ -560,9 +557,7 @@ end:
|
|||
|
||||
} else {
|
||||
/* resume scan where we left it */
|
||||
if (!mpvparse->last_sc)
|
||||
*skipsize = mpvparse->last_sc = buf_size - 3;
|
||||
else if (mpvparse->typeoffsize)
|
||||
if (mpvparse->typeoffsize)
|
||||
mpvparse->last_sc = buf_size - 3;
|
||||
else
|
||||
*skipsize = 0;
|
||||
|
|
Loading…
Reference in a new issue