From 2eee5c45eb614403a6d73bc71514f16ca77f0809 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 12 Apr 2009 20:40:18 +0000 Subject: [PATCH] Get rid of the non sensical idea of using the current picture for missing reference pictures. git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18473 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/h264.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index aafbd754a..313ad2696 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -2950,7 +2950,10 @@ static int decode_ref_pic_list_reordering(H264Context *h){ 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; } } } -- 2.39.2