projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
667fa25
)
fix crash
author
Matej Knopp
<matej.knopp@gmail.com>
Fri, 13 Apr 2012 20:04:38 +0000
(22:04 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Sat, 14 Apr 2012 08:43:21 +0000
(10:43 +0200)
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
patch
|
blob
|
history
diff --git
a/gst/videoparsers/gstmpegvideoparse.c
b/gst/videoparsers/gstmpegvideoparse.c
index
fd72aa6
..
bee5759
100644
(file)
--- 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;