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

Originally committed as revision 837 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2002-08-04 16:05:05 +00:00
parent d930ef19ea
commit b7adc711fa
1 changed files with 3 additions and 0 deletions

View File

@ -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;