comparison h264.c @ 6377:931ca319f2fe libavcodec

Fix ;;
author michael
date Tue, 19 Feb 2008 22:09:08 +0000
parents 985f4195bb69
children 3c67363d6fa0
comparison
equal deleted inserted replaced
6376:f70b8e837ecc 6377:931ca319f2fe
2917 if(h->long_ref[i] == NULL) continue; 2917 if(h->long_ref[i] == NULL) continue;
2918 sel = h->long_ref[i]->reference | structure_sel; 2918 sel = h->long_ref[i]->reference | structure_sel;
2919 if(sel != PICT_FRAME) continue; 2919 if(sel != PICT_FRAME) continue;
2920 2920
2921 frame_list[ list ][index ]= *h->long_ref[i]; 2921 frame_list[ list ][index ]= *h->long_ref[i];
2922 frame_list[ list ][index++].pic_id= i;; 2922 frame_list[ list ][index++].pic_id= i;
2923 } 2923 }
2924 len[list] = index; 2924 len[list] = index;
2925 } 2925 }
2926 2926
2927 for(list=0; list<2; list++){ 2927 for(list=0; list<2; list++){
2961 int sel; 2961 int sel;
2962 if(h->long_ref[i] == NULL) continue; 2962 if(h->long_ref[i] == NULL) continue;
2963 sel = h->long_ref[i]->reference | structure_sel; 2963 sel = h->long_ref[i]->reference | structure_sel;
2964 if(sel != PICT_FRAME) continue; 2964 if(sel != PICT_FRAME) continue;
2965 frame_list[0][index ]= *h->long_ref[i]; 2965 frame_list[0][index ]= *h->long_ref[i];
2966 frame_list[0][index++].pic_id= i;; 2966 frame_list[0][index++].pic_id= i;
2967 } 2967 }
2968 2968
2969 if (FIELD_PICTURE) 2969 if (FIELD_PICTURE)
2970 index = split_field_ref_list(h->default_ref_list[0], 2970 index = split_field_ref_list(h->default_ref_list[0],
2971 h->ref_count[0], frame_list[0], 2971 h->ref_count[0], frame_list[0],
5496 5496
5497 if( get_cabac( CC, ctx ) == 0 ) { 5497 if( get_cabac( CC, ctx ) == 0 ) {
5498 if( !qmul ) { 5498 if( !qmul ) {
5499 block[j] = get_cabac_bypass_sign( CC, -1); 5499 block[j] = get_cabac_bypass_sign( CC, -1);
5500 }else{ 5500 }else{
5501 block[j] = (get_cabac_bypass_sign( CC, -qmul[j]) + 32) >> 6;; 5501 block[j] = (get_cabac_bypass_sign( CC, -qmul[j]) + 32) >> 6;
5502 } 5502 }
5503 5503
5504 abslevel1++; 5504 abslevel1++;
5505 } else { 5505 } else {
5506 int coeff_abs = 2; 5506 int coeff_abs = 2;