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
This commit is contained in:
Matej Knopp 2012-04-13 22:04:38 +02:00 committed by Wim Taymans
parent 667fa25ec2
commit d487c9cd78

View file

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