mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
223e8df136
commit
7141c8594d
@ -162,9 +162,9 @@ 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");
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user