changeset 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 7a63015e4627
children 30e57cd5d5f5
files nuv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;