Revision bb71e317 libavcodec/msmpeg4.c

View differences:

libavcodec/msmpeg4.c
411 411
}
412 412

  
413 413

  
414
/* strongly inspirated from MPEG4, but not exactly the same ! */
414
#if 0
415
/* identical to mpeg4 for msmpeg4v3 but not msmpeg4v2 */
415 416
void msmpeg4_dc_scale(MpegEncContext * s)
416 417
{
417 418
    if (s->qscale < 5 || s->msmpeg4_version==2){
......
420 421
    }else if (s->qscale < 9){
421 422
        s->y_dc_scale = 2 * s->qscale;
422 423
        s->c_dc_scale = (s->qscale + 13)>>1;
423
    }else{
424
    }else if(s->qscale < 25){
424 425
        s->y_dc_scale = s->qscale + 8;
425 426
        s->c_dc_scale = (s->qscale + 13)>>1;
427
    }else{
428
        s->y_dc_scale = 2 * s->qscale - 16;
429
        s->c_dc_scale = s->qscale - 6;
426 430
    }
427 431
}
432
#endif
428 433

  
429 434
/* dir = 0: left, dir = 1: top prediction */
430 435
static int msmpeg4_pred_dc(MpegEncContext * s, int n, 

Also available in: Unified diff