changeset 963:1936a177d482 libavcodec

* avoid usage of next/last buffer after flush (but there still something wrong when the first frame isn't keyframe)
author kabi
date Mon, 06 Jan 2003 18:09:27 +0000
parents c5aef83c6a3f
children 6e6773512288
files utils.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Mon Jan 06 18:06:51 2003 +0000
+++ b/utils.c	Mon Jan 06 18:09:27 2003 +0000
@@ -677,7 +677,8 @@
            if(s->picture[i].data[0] && (   s->picture[i].type == FF_BUFFER_TYPE_INTERNAL
                                         || s->picture[i].type == FF_BUFFER_TYPE_USER))
             avctx->release_buffer(avctx, (AVFrame*)&s->picture[i]);
-        }
+	}
+	s->last_picture.data[0] = s->next_picture.data[0] = NULL;
         break;
     default:
         //FIXME