Browse Source

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.
tags/n0.8
Stefano Sabatini 15 years ago
parent
commit
fd37eac495
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      libavcodec/indeo2.c

+ 0
- 3
libavcodec/indeo2.c View 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)) {


Loading…
Cancel
Save