bintext: set buffer hints
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b9dbaa409f
commit
3ac4f444e2
@ -131,6 +131,9 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
int buf_size = avpkt->size;
|
int buf_size = avpkt->size;
|
||||||
const uint8_t *buf_end = buf+buf_size;
|
const uint8_t *buf_end = buf+buf_size;
|
||||||
|
|
||||||
|
s->frame.buffer_hints = FF_BUFFER_HINTS_VALID |
|
||||||
|
FF_BUFFER_HINTS_PRESERVE |
|
||||||
|
FF_BUFFER_HINTS_REUSABLE;
|
||||||
if (avctx->reget_buffer(avctx, &s->frame)) {
|
if (avctx->reget_buffer(avctx, &s->frame)) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
|
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user