Revision d0271e8a libavcodec/rv10.c

View differences:

libavcodec/rv10.c
258 258
    put_bits(&s->pb, 3, 0);	/* ignored */
259 259
}
260 260

  
261
void rv20_encode_picture_header(MpegEncContext *s, int picture_number){
262
    put_bits(&s->pb, 2, s->pict_type); //I 0 vs. 1 ?
263
    put_bits(&s->pb, 1, 0);	/* unknown bit */
264
    put_bits(&s->pb, 5, s->qscale);
265
        
266
    put_bits(&s->pb, 8, picture_number&0xFF); //FIXME wrong, but correct is not known
267
    s->mb_x= s->mb_y= 0;
268
    ff_h263_encode_mba(s);
269
    
270
    put_bits(&s->pb, 1, s->no_rounding);
271
    
272
    assert(s->f_code == 1);
273
    assert(s->unrestricted_mv == 1);
274
//    assert(s->h263_aic== (s->pict_type == I_TYPE));
275
    assert(s->alt_inter_vlc == 0);
276
    assert(s->umvplus == 0);
277
    assert(s->modified_quant==1);
278
    assert(s->loop_filter==1);
279

  
280
    s->h263_aic= s->pict_type == I_TYPE;
281
    if(s->h263_aic){
282
        s->y_dc_scale_table= 
283
        s->c_dc_scale_table= ff_aic_dc_scale_table;
284
    }else{
285
        s->y_dc_scale_table=
286
        s->c_dc_scale_table= ff_mpeg1_dc_scale_table;
287
    }
288
}
289

  
261 290
static int get_num(GetBitContext *gb)
262 291
{
263 292
    int n, n1;

Also available in: Unified diff