[FFmpeg-soc] [soc]: r1116 - rv40/rv40.c

kostya subversion at mplayerhq.hu
Tue Aug 21 08:12:02 CEST 2007


Author: kostya
Date: Tue Aug 21 08:12:01 2007
New Revision: 1116

Log:
Return last decoded picture in case of B-frames

Modified:
   rv40/rv40.c

Modified: rv40/rv40.c
==============================================================================
--- rv40/rv40.c	(original)
+++ rv40/rv40.c	Tue Aug 21 08:12:01 2007
@@ -1891,7 +1891,13 @@ static int rv40_decode_frame(AVCodecCont
 
     /* no supplementary picture */
     if (buf_size == 0) {
-        return 0;
+        /* special case for last picture */
+        if (s->low_delay==0 && s->next_picture_ptr) {
+            *pict= *(AVFrame*)s->next_picture_ptr;
+            s->next_picture_ptr= NULL;
+
+            *data_size = sizeof(AVFrame);
+        }
     }
 
     if(avctx->slice_count){



More information about the FFmpeg-soc mailing list