[FFmpeg-cvslog] r19808 - trunk/libavcodec/nuv.c

reimar subversion
Thu Sep 10 14:23:45 CEST 2009


Author: reimar
Date: Thu Sep 10 14:23:45 2009
New Revision: 19808

Log:
Simplify: reget_buffer behaves exactly like get_buffer if the buffer was
previously released, so no extra condition is necessary.

Modified:
   trunk/libavcodec/nuv.c

Modified: trunk/libavcodec/nuv.c
==============================================================================
--- trunk/libavcodec/nuv.c	Thu Sep 10 11:30:57 2009	(r19807)
+++ trunk/libavcodec/nuv.c	Thu Sep 10 14:23:45 2009	(r19808)
@@ -202,7 +202,7 @@ static int decode_frame(AVCodecContext *
     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;



More information about the ffmpeg-cvslog mailing list