mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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:
parent
667fa25ec2
commit
d487c9cd78
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue