• Heesuk Jung's avatar
    Fix bit_rate in MPEG1/2 Video · 25b7aa98
    Heesuk Jung authored
    In ISO/IEC 13818-2, bit rate is differently determined according to video type
    
    1) MPEG1 Video
     Bit_rate and vbv_delay are set to 3FFFF and FFFF respectively
     to indicate variable bitrate. Other values are for constant bitrate.
     VBV is only defined for constant bit rate operation.
     Ths STD supersedes the VBV model for vbr.
    
    2) MPEG2 Video
     Even if the bitrate is constant, the value of bit_rate may not be the actual bitrate
     since bit_rate need only be an upper bound to that actual bitrate.
     VBV is only defined for variable bit rate operation.
     Constant bit rate is viewed as a special case of vbr.
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    25b7aa98
mpeg12.c 97.5 KB