# HG changeset patch # User michael # Date 1217029183 0 # Node ID aff96834b8cd5ebd759c49d3b1351181953856da # Parent 3c04b2988f199fd2f3e5e810ca7159260622cf67 Print an error if a reference picture is missing. diff -r 3c04b2988f19 -r aff96834b8cd h264.c --- 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; listlist_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 + } } }