changeset 7403:aff96834b8cd libavcodec

Print an error if a reference picture is missing.
author michael
date Fri, 25 Jul 2008 23:39:43 +0000
parents 3c04b2988f19
children f76bbe133ddd
files h264.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Fri Jul 25 23:36:48 2008 +0000
+++ b/h264.c	Fri Jul 25 23:39:43 2008 +0000
@@ -3007,8 +3007,10 @@
     }
     for(list=0; list<h->list_count; list++){
         for(index= 0; index < h->ref_count[list]; index++){
-            if(!h->ref_list[list][index].data[0])
-                h->ref_list[list][index]= s->current_picture;
+            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
+            }
         }
     }