mpegvideoparse: Parser fails to split some frames

This commit is contained in:
Matej Knopp 2012-04-14 21:02:06 +02:00 committed by Sebastian Dröge
parent 23e312872e
commit 19f7bd470d

View file

@ -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;