[FFmpeg-cvslog] r18473 - trunk/libavcodec/h264.c

michael subversion
Sun Apr 12 22:40:19 CEST 2009


Author: michael
Date: Sun Apr 12 22:40:18 2009
New Revision: 18473

Log:
Get rid of the non sensical idea of using the current picture for missing
reference pictures.

Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	Sun Apr 12 22:21:23 2009	(r18472)
+++ trunk/libavcodec/h264.c	Sun Apr 12 22:40:18 2009	(r18473)
@@ -2950,7 +2950,10 @@ static int decode_ref_pic_list_reorderin
         for(index= 0; index < h->ref_count[list]; index++){
             if(!h->ref_list[list][index].data[0]){
                 av_log(h->s.avctx, AV_LOG_ERROR, "Missing reference picture\n");
-                h->ref_list[list][index]= s->current_picture; //FIXME this is not a sensible solution
+                if(h->default_ref_list[list][0].data[0])
+                    h->ref_list[list][index]= h->default_ref_list[list][0];
+                else
+                    return -1;
             }
         }
     }



More information about the ffmpeg-cvslog mailing list