• Andreas Rheinhardt's avatar
    avcodec/mlpenc: Simplify finding best codebook · 15072d27
    Andreas Rheinhardt authored
    Finding the best codebook involves comparing different paths, where each
    path is a sequence of several decisions (namely which codebook to use).
    Up until now, these sequence was encoded in a NUL-terminated string and
    the actual decisions were encoded as ’\0'..'\3' (which encoded 0..3).
    This commit modifies this to actually encode it via 0..3 by switching
    away from a C-string to a simple array with an explicit length field.
    Reviewed-by: 's avatarLynne <dev@lynne.ee>
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    15072d27
mlpenc.c 82.6 KB