Commit 5d72902a authored by darkshikari's avatar darkshikari

Simple refactoring to resolve a FIXME. Patch by Paul Kendall.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14419 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5e278e9a
......@@ -2911,7 +2911,6 @@ static int decode_ref_pic_list_reordering(H264Context *h){
print_short_term(h);
print_long_term(h);
if(h->slice_type_nos==FF_I_TYPE) return 0; //FIXME move before function
for(list=0; list<h->list_count; list++){
memcpy(h->ref_list[list], h->default_ref_list[list], sizeof(Picture)*h->ref_count[list]);
......@@ -3988,7 +3987,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
fill_default_ref_list(h);
}
if(decode_ref_pic_list_reordering(h) < 0)
if(h->slice_type_nos!=FF_I_TYPE && decode_ref_pic_list_reordering(h) < 0)
return -1;
if( (h->pps.weighted_pred && h->slice_type_nos == FF_P_TYPE )
......
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