• Christophe Gisquet's avatar
    dnxhddec: decode and use interlace mb flag · f5f9c166
    Christophe Gisquet authored
    This bit is 1 in some samples, and seems to coincide with interlaced
    mbs and CID1260. 2008 specs do not know about it, and maintain qscale
    is 11 bits. This looks oversized, but may help larger bitdepths.
    
    Currently, it leads to an obviously incorrect qscale value, meaning
    its syntax is shifted by 1. However, reading 11 bits also leads to
    obviously incorrect decoding: qscale seems to be 10 bits.
    
    However, as most profiles still have 11bits qscale, the feature is
    restricted to the CID1260 profile.
    
    The encoder writes 12 bits of syntax, last and first bits always 0,
    which is now somewhat inconsistent with the decoder, but ends up with
    the same effect (progressive + reserved bit).
    
    Partially fixes ticket #4876.
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    (cherry picked from commit 2801a135)
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    f5f9c166
dnxhddec.c 18.9 KB