1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/mpeg4videodec: Use union to save space

At most one of block32 and dpcm_macroblock is used at any given time.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-05-21 15:22:39 +02:00
parent ac1e6d2171
commit 43a69886b2

View File

@ -99,10 +99,12 @@ typedef struct Mpeg4DecContext {
void (*dct_unquantize_h263_intra)(MpegEncContext *s,
int16_t *block, int n, int qscale);
union {
DECLARE_ALIGNED(8, int32_t, block32)[12][64];
int16_t dpcm_macroblock[3][256];
};
// 0 = DCT, 1 = DPCM top to bottom scan, -1 = DPCM bottom to top scan
int dpcm_direction;
int16_t dpcm_macroblock[3][256];
} Mpeg4DecContext;
int ff_mpeg4_decode_picture_header(MpegEncContext *s);