mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +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);
|
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,
|
ret = gst_mpegv_parse_process_sc (mpvparse, buf, codoffsz->offset,
|
||||||
codoffsz->type);
|
codoffsz->type);
|
||||||
|
|
||||||
|
@ -560,9 +557,7 @@ end:
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* resume scan where we left it */
|
/* resume scan where we left it */
|
||||||
if (!mpvparse->last_sc)
|
if (mpvparse->typeoffsize)
|
||||||
*skipsize = mpvparse->last_sc = buf_size - 3;
|
|
||||||
else if (mpvparse->typeoffsize)
|
|
||||||
mpvparse->last_sc = buf_size - 3;
|
mpvparse->last_sc = buf_size - 3;
|
||||||
else
|
else
|
||||||
*skipsize = 0;
|
*skipsize = 0;
|
||||||
|
|
Loading…
Reference in a new issue