mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avcodec/mpegutils: Remap MB_TYPE_ACPRED, add codec-specific MB_TYPE
MB_TYPE_ACPRED is currently reused for MB_TYPE_REF0 by H.264, so that the value fits into an uint16_t. Given that MB_TYPE_ACPRED is not subject to any such restriction (apart from fitting into 32bits), it can be remapped to a hithereto unused bit. The then available bit will be declared to be codec-specific (i.e. unused by generic code), so that H.264 can use it for MB_TYPE_REF0 and so that it can be reused later for e.g. MB_TYPE_H261_FIL. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
5805b860fe
commit
dd1e804a98
3 changed files with 6 additions and 3 deletions
|
|
@ -109,7 +109,7 @@ static char get_type_mv_char(int mb_type)
|
|||
// Type & MV direction
|
||||
if (IS_PCM(mb_type))
|
||||
return 'P';
|
||||
else if (IS_INTRA(mb_type) && IS_ACPRED(mb_type))
|
||||
else if (IS_ACPRED(mb_type))
|
||||
return 'A';
|
||||
else if (IS_INTRA4x4(mb_type))
|
||||
return 'i';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue