Commit aef1b021 authored by michaelni's avatar michaelni

last_picture should be never == NULL (it was with dr1) this might fix a...

last_picture should be never == NULL (it was with dr1) this might fix a segfault with error concealment


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@837 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 05d7c7fc
......@@ -657,6 +657,9 @@ void MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
s->next_picture[i] = tmp;
s->current_picture[i] = tmp;
if(s->last_picture[i]==NULL)
s->last_picture[i]= s->next_picture[i];
s->last_dr_opaque= s->next_dr_opaque;
s->next_dr_opaque= avctx->dr_opaque_frame;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment