diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-06-12 08:37:53 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-06-20 18:58:39 +0200 |
commit | 65d5ccb808ec93de46a2458ea8cc082ce4460f34 (patch) | |
tree | 489ec6b13dc64685d2defce03eafd6de5eb21046 | |
parent | c41818dc5dc14eb944761204e7b0ac179a6dcd1a (diff) | |
download | ffmpeg-65d5ccb808ec93de46a2458ea8cc082ce4460f34.tar.gz |
avcodec/mpeg_er: Don't set block_index unnecessarily
ff_init_block_index() sets MpegEncContext.dest and
MpegEncContext.block_index. The latter is unused by
ff_mpv_reconstruct_mb() (which is what this code is
preparatory for) and dest is overwritten a few lines below.
So don't initialize block_index at all.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/mpeg_er.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/mpeg_er.c b/libavcodec/mpeg_er.c index e7b3197bb1..fe7dcd7efb 100644 --- a/libavcodec/mpeg_er.c +++ b/libavcodec/mpeg_er.c @@ -76,10 +76,6 @@ static void mpeg_er_decode_mb(void *opaque, int ref, int mv_dir, int mv_type, s->mcsel = 0; memcpy(s->mv, mv, sizeof(*mv)); - ff_init_block_index(s); - ff_update_block_index(s, s->avctx->bits_per_raw_sample, - s->avctx->lowres, s->chroma_x_shift); - s->bdsp.clear_blocks(s->block[0]); if (!s->chroma_y_shift) s->bdsp.clear_blocks(s->block[6]); |