changeset 592:909e50c67d0e libavcodec

last_picture should be never == NULL (it was with dr1) this might fix a segfault with error concealment
author michaelni
date Sun, 04 Aug 2002 16:05:05 +0000
parents d3f374218030
children 5b7e0db3e886
files mpegvideo.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;