mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-01 05:31:04 +08:00
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.
This commit is contained in:
@ -146,9 +146,6 @@ static int ir2_decode_frame(AVCodecContext *avctx,
|
|||||||
AVFrame * const p= (AVFrame*)&s->picture;
|
AVFrame * const p= (AVFrame*)&s->picture;
|
||||||
int start;
|
int start;
|
||||||
|
|
||||||
if(p->data[0])
|
|
||||||
avctx->release_buffer(avctx, p);
|
|
||||||
|
|
||||||
p->reference = 1;
|
p->reference = 1;
|
||||||
p->buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
|
p->buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
|
||||||
if (avctx->reget_buffer(avctx, p)) {
|
if (avctx->reget_buffer(avctx, p)) {
|
||||||
|
Reference in New Issue
Block a user