From 412bc5a6c8974d562ab609d3299269f101007c9e Mon Sep 17 00:00:00 2001 From: banan Date: Thu, 10 Sep 2009 19:01:53 +0000 Subject: [PATCH] Use reget_buffer instead of get_buffer. Fixes issue1367. Patch by jarkko.palviainen.sesca.com. git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19814 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/flashsv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c index dd8236018a..90c78640d7 100644 --- a/libavcodec/flashsv.c +++ b/libavcodec/flashsv.c @@ -162,10 +162,10 @@ static int flashsv_decode_frame(AVCodecContext *avctx, h_blocks, v_blocks, h_part, v_part); s->frame.reference = 1; - s->frame.buffer_hints = FF_BUFFER_HINTS_VALID; - if (avctx->get_buffer(avctx, &s->frame) < 0) { - av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed\n"); - return -1; + s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; + if(avctx->reget_buffer(avctx, &s->frame) < 0){ + av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n"); + return -1; } /* loop over all block columns */ -- 2.11.4.GIT