comparison h264.c @ 7921:44570b9b3aa1 libavcodec

Initialize next/last_picture* as the generic code does not always set them to sane values.
author michael
date Thu, 25 Sep 2008 14:29:35 +0000
parents b731ef917a01
children 2c15748c530a
comparison
equal deleted inserted replaced
7920:b731ef917a01 7921:44570b9b3aa1
3922 fill_default_ref_list(h); 3922 fill_default_ref_list(h);
3923 } 3923 }
3924 3924
3925 if(h->slice_type_nos!=FF_I_TYPE && decode_ref_pic_list_reordering(h) < 0) 3925 if(h->slice_type_nos!=FF_I_TYPE && decode_ref_pic_list_reordering(h) < 0)
3926 return -1; 3926 return -1;
3927
3928 if(h->slice_type_nos!=FF_I_TYPE){
3929 s->last_picture_ptr= &h->ref_list[0][0];
3930 copy_picture(&s->last_picture, s->last_picture_ptr);
3931 }
3932 if(h->slice_type_nos==FF_B_TYPE){
3933 s->next_picture_ptr= &h->ref_list[1][0];
3934 copy_picture(&s->next_picture, s->next_picture_ptr);
3935 }
3927 3936
3928 if( (h->pps.weighted_pred && h->slice_type_nos == FF_P_TYPE ) 3937 if( (h->pps.weighted_pred && h->slice_type_nos == FF_P_TYPE )
3929 || (h->pps.weighted_bipred_idc==1 && h->slice_type_nos== FF_B_TYPE ) ) 3938 || (h->pps.weighted_bipred_idc==1 && h->slice_type_nos== FF_B_TYPE ) )
3930 pred_weight_table(h); 3939 pred_weight_table(h);
3931 else if(h->pps.weighted_bipred_idc==2 && h->slice_type_nos== FF_B_TYPE) 3940 else if(h->pps.weighted_bipred_idc==2 && h->slice_type_nos== FF_B_TYPE)