diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c index 4f049baf901b529e9aced1d833e4004a1e294f19..dfc26e4ebcd054eaa9fa920823ea956e16888773 100644 --- a/libavcodec/nuv.c +++ b/libavcodec/nuv.c @@ -202,7 +202,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, c->pic.reference = 3; c->pic.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_READABLE | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; - result = keyframe ? avctx->get_buffer(avctx, &c->pic) : avctx->reget_buffer(avctx, &c->pic); + result = avctx->reget_buffer(avctx, &c->pic); if (result < 0) { av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); return -1;