提交 ead79335 编写于 作者: M Michael Niedermayer

Get rid of the non sensical idea of using the current picture for missing

reference pictures.

Originally committed as revision 18473 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 256299d3
......@@ -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;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册