Mercurial > libavcodec.hg
diff nuv.c @ 10154:8f578f86c51a libavcodec
Simplify: reget_buffer behaves exactly like get_buffer if the buffer was
previously released, so no extra condition is necessary.
author | reimar |
---|---|
date | Thu, 10 Sep 2009 12:23:45 +0000 |
parents | 54bc8a2727b0 |
children | 8a4984c5cacc |
line wrap: on
line diff
--- a/nuv.c Thu Sep 10 08:50:03 2009 +0000 +++ b/nuv.c Thu Sep 10 12:23:45 2009 +0000 @@ -202,7 +202,7 @@ 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;