diff options
author | Benjamin Larsson <banan@ludd.ltu.se> | 2009-09-10 23:01:53 +0400 |
---|---|---|
committer | Benjamin Larsson <banan@ludd.ltu.se> | 2009-09-10 23:01:53 +0400 |
commit | 7141c8594d196ae99a86efcbd7647725bc053ac6 (patch) | |
tree | 269660e09b0dac4b5401147208738869d836581a /libavcodec/flashsv.c | |
parent | 223e8df13696b00d7dd3e32d195f08a279223d2f (diff) |
Use reget_buffer instead of get_buffer. Fixes issue1367.
Patch by jarkko.palviainen.sesca.com.
Originally committed as revision 19814 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flashsv.c')
-rw-r--r-- | libavcodec/flashsv.c | 8 |
1 files 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 */ |