summaryrefslogtreecommitdiff
path: root/libavcodec/indeo2.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-26 13:50:08 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-27 11:50:45 +0200
commitfd37eac4958a2544599d1b0fce1b153ebd7cd7da (patch)
treedb663fb947d37f2461acf6cc794c71a79cbe8575 /libavcodec/indeo2.c
parent10aa5a6c429827b8f2cd5a04680a8d24d5ad8b53 (diff)
downloadffmpeg-fd37eac4958a2544599d1b0fce1b153ebd7cd7da.tar.gz
indeo2: remove unnecessary release_buffer() call
This was preventing reget_buffer() to return a buffer with the same data, which was resulting in playback artifacts. Fix trac issue #116.
Diffstat (limited to 'libavcodec/indeo2.c')
-rw-r--r--libavcodec/indeo2.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/indeo2.c b/libavcodec/indeo2.c
index 68c6246f89..c4d410faf5 100644
--- a/libavcodec/indeo2.c
+++ b/libavcodec/indeo2.c
@@ -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)) {