mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
Check for invalid motion vector, fixes issue 2521.
Patch by Daniel Kang, daniel.d.kang at gmail Originally committed as revision 26293 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ebc3488300
commit
43c34675af
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user