indeo2: remove unnecessary release_buffer() call
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 26 Apr 2011 11:50:08 +0000 (13:50 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Wed, 27 Apr 2011 09:50:45 +0000 (11:50 +0200)
This was preventing reget_buffer() to return a buffer with the same
data, which was resulting in playback artifacts.

Fix trac issue #116.

libavcodec/indeo2.c

index 68c6246..c4d410f 100644 (file)
@@ -146,9 +146,6 @@ static int ir2_decode_frame(AVCodecContext *avctx,
     AVFrame * const p= (AVFrame*)&s->picture;
     int start;
 
-    if(p->data[0])
-        avctx->release_buffer(avctx, p);
-
     p->reference = 1;
     p->buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
     if (avctx->reget_buffer(avctx, p)) {