Commit 889b5a8c authored by michael's avatar michael

Print an error if a reference picture is missing.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14403 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4fb5d573
...@@ -3007,8 +3007,10 @@ static int decode_ref_pic_list_reordering(H264Context *h){ ...@@ -3007,8 +3007,10 @@ static int decode_ref_pic_list_reordering(H264Context *h){
} }
for(list=0; list<h->list_count; list++){ for(list=0; list<h->list_count; list++){
for(index= 0; index < h->ref_count[list]; index++){ for(index= 0; index < h->ref_count[list]; index++){
if(!h->ref_list[list][index].data[0]) if(!h->ref_list[list][index].data[0]){
h->ref_list[list][index]= s->current_picture; 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
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment