Revision baced9f5 libavcodec/h263.c

View differences:

libavcodec/h263.c
2154 2154
    int profile_and_level_indication;
2155 2155
    int vo_ver_id;
2156 2156
    
2157
    if(s->max_b_frames || s->quarter_sample){
2158
        profile_and_level_indication= 0xF1; // adv simple level 1
2157
    if(s->avctx->profile != FF_PROFILE_UNKNOWN){
2158
        profile_and_level_indication = s->avctx->profile << 4;
2159
    }else if(s->max_b_frames || s->quarter_sample){
2160
        profile_and_level_indication= 0xF0; // adv simple
2161
    }else{
2162
        profile_and_level_indication= 0x00; // simple
2163
    }
2164

  
2165
    if(s->avctx->level != FF_LEVEL_UNKNOWN){
2166
        profile_and_level_indication |= s->avctx->level;
2167
    }else{
2168
        profile_and_level_indication |= 1; //level 1
2169
    }
2170

  
2171
    if(profile_and_level_indication>>4 == 0xF){
2159 2172
        vo_ver_id= 5;
2160 2173
    }else{
2161
        profile_and_level_indication= 0x01; // simple level 1
2162 2174
        vo_ver_id= 1;
2163 2175
    }
2176

  
2164 2177
    //FIXME levels
2165 2178

  
2166 2179
    put_bits(&s->pb, 16, 0);

Also available in: Unified diff