ensure that data[0] is set to NULL for next frame
authorAurelien Jacobs <aurel@gnuage.org>
Tue, 6 Feb 2007 00:35:51 +0000 (00:35 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Tue, 6 Feb 2007 00:35:51 +0000 (00:35 +0000)
to please avcodec_default_get_buffer()

Originally committed as revision 7846 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/vp56.c

index eb78d02e47c754ee2dabdda6a823752c7c858ba3..62683180db32145b133049336259870123131c53 100644 (file)
@@ -609,6 +609,7 @@ int vp56_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
     *picture = *p;
     *data_size = sizeof(AVPicture);
 
     *picture = *p;
     *data_size = sizeof(AVPicture);
 
+    s->frames[VP56_FRAME_CURRENT].data[0] = NULL;
     return buf_size;
 }
 
     return buf_size;
 }