Do not release the AVFrame when using reget_buffer in flashsv.
authorBenjamin Larsson <banan@ludd.ltu.se>
Sun, 13 Sep 2009 19:17:02 +0000 (19:17 +0000)
committerBenjamin Larsson <banan@ludd.ltu.se>
Sun, 13 Sep 2009 19:17:02 +0000 (19:17 +0000)
Originally committed as revision 19834 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/flashsv.c

index 90c7864..8870fe6 100644 (file)
@@ -114,9 +114,6 @@ static int flashsv_decode_frame(AVCodecContext *avctx,
     if (buf_size == 0)
         return 0;
 
-    if(s->frame.data[0])
-            avctx->release_buffer(avctx, &s->frame);
-
     init_get_bits(&gb, buf, buf_size * 8);
 
     /* start to parse the bitstream */