diff mpegvideo.c @ 1601:a70c07e13e8e libavcodec

flush fix (untested)
author michael
date Mon, 03 Nov 2003 17:42:50 +0000
parents 079239998a38
children 13a20c0594f2
line wrap: on
line diff
--- a/mpegvideo.c	Mon Nov 03 13:58:26 2003 +0000
+++ b/mpegvideo.c	Mon Nov 03 17:42:50 2003 +0000
@@ -3210,7 +3210,7 @@
                                     || s->picture[i].type == FF_BUFFER_TYPE_USER))
         avctx->release_buffer(avctx, (AVFrame*)&s->picture[i]);
     }
-    s->last_picture_ptr = s->next_picture_ptr = NULL;
+    s->current_picture_ptr = s->last_picture_ptr = s->next_picture_ptr = NULL;
     
     s->parse_context.state= -1;
     s->parse_context.frame_start_found= 0;