Commit 412bc5a6 authored by banan's avatar banan

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
parent b696fbaf
...@@ -162,10 +162,10 @@ static int flashsv_decode_frame(AVCodecContext *avctx, ...@@ -162,10 +162,10 @@ static int flashsv_decode_frame(AVCodecContext *avctx,
h_blocks, v_blocks, h_part, v_part); h_blocks, v_blocks, h_part, v_part);
s->frame.reference = 1; s->frame.reference = 1;
s->frame.buffer_hints = FF_BUFFER_HINTS_VALID; s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
if (avctx->get_buffer(avctx, &s->frame) < 0) { if(avctx->reget_buffer(avctx, &s->frame) < 0){
av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed\n"); av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
return -1; return -1;
} }
/* loop over all block columns */ /* loop over all block columns */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment