• Andreas Rheinhardt's avatar
    avcodec/mpegutils: Don't use MB_TYPE_L[01] for mpegvideo · f5d5b80f
    Andreas Rheinhardt authored
    MB_TYPE_L[01] is based upon H.264 terminology (it stands for
    list); yet the mpegvideo based decoders don't have lists
    of reference frames, they have at most one forward and one
    backward reference. So use terminology based upon this.
    
    This also has a second advantage: MB_TYPE_L[01] is actually
    an OR of two flags (which are set independently for H.264,
    but aren't for mpegvideo). Switching to different flags
    makes the flags fit into an int16_t, which will be useful
    in future commits.
    
    The only downside to this is a very small amount of code
    in error_resilience.c and mpegutils.c (the only code shared
    between the H.264 decoder and mpegvideo).
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
    f5d5b80f
error_resilience.c 50.7 KB