• Anton Khirnov's avatar
    h264_ps: export actual height in MBs as SPS.mb_height · a8cbe5a0
    Anton Khirnov authored
    Currently, SPS.mb_height is actually what the spec calls
    PicHeightInMapUnits, which is half the frame height when interlacing is
    allowed. Calling this 'mb_height' is quite confusing, and there are at
    least two associated bugs where this field is treated as the actual
    frame height - in the h264 parser and in the code computing maximum
    reordering buffer size for a given level.
    
    Fix those issues (and avoid possible future ones) by exporting the real
    frame height in this field.
    a8cbe5a0
h264_ps.h 5.76 KB