summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg_er.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-26 20:02:25 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-31 01:53:19 +0200
commit145236741d9a7c18da4ee22c30b777b781bc5ac8 (patch)
treeb471d3defc31f5032e7f78ef16aecc73356cc083 /libavcodec/mpeg_er.c
parentdd20ebb2ca2a572557de612eef2df1a57738efde (diff)
avcodec/mpegvideo: Inline values in ff_update_block_index()
This is possible for most of the callers, because e.g. only the MPEG-4 decoder can have bits_per_raw_sample > 8. Also most mpegvideo-based codecs are 420 only. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpeg_er.c')
-rw-r--r--libavcodec/mpeg_er.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpeg_er.c b/libavcodec/mpeg_er.c
index f54cb8548b..02f407d8ea 100644
--- a/libavcodec/mpeg_er.c
+++ b/libavcodec/mpeg_er.c
@@ -75,7 +75,8 @@ static void mpeg_er_decode_mb(void *opaque, int ref, int mv_dir, int mv_type,
memcpy(s->mv, mv, sizeof(*mv));
ff_init_block_index(s);
- ff_update_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)