From d487c9cd78d68f080d275c09114e0b3ffc6a68d8 Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Fri, 13 Apr 2012 22:04:38 +0200 Subject: [PATCH] fix crash last_sc is not reset every time a frame is being output, which can cause last_sc > buf_size in subsequent frame. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=674073 --- gst/videoparsers/gstmpegvideoparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c index fd72aa6787..bee5759f97 100644 --- a/gst/videoparsers/gstmpegvideoparse.c +++ b/gst/videoparsers/gstmpegvideoparse.c @@ -541,6 +541,7 @@ gst_mpegv_parse_handle_frame (GstBaseParse * parse, end: if (fsize > 0) { ret = TRUE; + mpvparse->last_sc = -1; } else if (GST_BASE_PARSE_DRAINING (parse)) { fsize = buf_size; ret = TRUE;