Revision 487bce53 libavcodec/wmv2.c

View differences:

libavcodec/wmv2.c
349 349
int ff_wmv2_decode_picture_header(MpegEncContext * s)
350 350
{
351 351
    Wmv2Context * const w= (Wmv2Context*)s;
352
    int code, i;
352
    int code;
353 353

  
354 354
#if 0
355 355
{
......
370 370
        printf("I7:%X/\n", code);
371 371
    }
372 372
    s->qscale = get_bits(&s->gb, 5);
373
    if(s->qscale < 0)
374
       return -1;
375
       
376
    return 0;
377
}
378

  
379
int ff_wmv2_decode_secondary_picture_header(MpegEncContext * s)
380
{
381
    Wmv2Context * const w= (Wmv2Context*)s;
373 382

  
374 383
    if (s->pict_type == I_TYPE) {
375 384
        if(w->j_type_bit) w->j_type= get_bits1(&s->gb);

Also available in: Unified diff