# HG changeset patch # User michaelni # Date 1028477105 0 # Node ID 909e50c67d0ee5003e4f488fe414f0ea7c93c741 # Parent d3f3742180303808087872bfb8e75baafcfd1d32 last_picture should be never == NULL (it was with dr1) this might fix a segfault with error concealment diff -r d3f374218030 -r 909e50c67d0e mpegvideo.c --- a/mpegvideo.c Fri Aug 02 20:27:46 2002 +0000 +++ b/mpegvideo.c Sun Aug 04 16:05:05 2002 +0000 @@ -657,6 +657,9 @@ 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;