projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebc3488
)
Check for invalid motion vector, fixes issue 2521.
author
Daniel Kang
<daniel.d.kang@gmail.com>
Mon, 10 Jan 2011 10:28:06 +0000
(10:28 +0000)
committer
Carl Eugen Hoyos
<cehoyos@rainbow.studorg.tuwien.ac.at>
Mon, 10 Jan 2011 10:28:06 +0000
(10:28 +0000)
Patch by Daniel Kang, daniel.d.kang at gmail
Originally committed as revision 26293 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/roqvideo.c
patch
|
blob
|
history
diff --git
a/libavcodec/roqvideo.c
b/libavcodec/roqvideo.c
index
830eb7b
..
eb8fc25
100644
(file)
--- a/
libavcodec/roqvideo.c
+++ b/
libavcodec/roqvideo.c
@@
-115,6
+115,11
@@
static inline void apply_motion_generic(RoqContext *ri, int x, int y, int deltax
return;
}
+ if (ri->last_frame->data[0] == NULL) {
+ av_log(ri->avctx, AV_LOG_ERROR, "Invalid decode type. Invalid header?\n");
+ return;
+ }
+
for(cp = 0; cp < 3; cp++) {
int outstride = ri->current_frame->linesize[cp];
int instride = ri->last_frame ->linesize[cp];