changeset 9126:851ff1a23191 libavcodec

Set AVFrame.reference correctly for nuv decoder.
author reimar
date Wed, 04 Mar 2009 17:12:58 +0000
parents 65141aec8b05
children 5d2f8632d417
files nuv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nuv.c	Wed Mar 04 16:56:55 2009 +0000
+++ b/nuv.c	Wed Mar 04 17:12:58 2009 +0000
@@ -197,7 +197,7 @@
 
     if (keyframe && c->pic.data[0])
         avctx->release_buffer(avctx, &c->pic);
-    c->pic.reference = 1;
+    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);