[FFmpeg-cvslog] r26293 - trunk/libavcodec/roqvideo.c
cehoyos
subversion
Mon Jan 10 11:28:07 CET 2011
Author: cehoyos
Date: Mon Jan 10 11:28:06 2011
New Revision: 26293
Log:
Check for invalid motion vector, fixes issue 2521.
Patch by Daniel Kang, daniel.d.kang at gmail
Modified:
trunk/libavcodec/roqvideo.c
Modified: trunk/libavcodec/roqvideo.c
==============================================================================
--- trunk/libavcodec/roqvideo.c Mon Jan 10 01:42:57 2011 (r26292)
+++ trunk/libavcodec/roqvideo.c Mon Jan 10 11:28:06 2011 (r26293)
@@ -115,6 +115,11 @@ static inline void apply_motion_generic(
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];
More information about the ffmpeg-cvslog
mailing list