aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-06-02 06:16:16 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-06-20 18:58:38 +0200
commit4339d2c11cb9261bd9927e6b209165eaf049fa12 (patch)
tree2c295b4e6ca0117af97f4d5e16a7ba27ade69c6b
parent80c2d7c89061e3511b815c355c1885111e029923 (diff)
downloadffmpeg-4339d2c11cb9261bd9927e6b209165eaf049fa12.tar.gz
avcodec/mpegvideo: Don't pretend dct_init can fail
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/mpegvideo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 6692a44ebb..a340b2afc8 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -273,7 +273,7 @@ static void gray8(uint8_t *dst, const uint8_t *src, ptrdiff_t linesize, int h)
}
/* init common dct for both encoder and decoder */
-static av_cold int dct_init(MpegEncContext *s)
+static av_cold void dct_init(MpegEncContext *s)
{
ff_blockdsp_init(&s->bdsp);
ff_hpeldsp_init(&s->hdsp, s->avctx->flags);
@@ -314,8 +314,6 @@ static av_cold int dct_init(MpegEncContext *s)
#elif ARCH_MIPS
ff_mpv_common_init_mips(s);
#endif
-
- return 0;
}
av_cold void ff_init_scantable(const uint8_t *permutation, ScanTable *st,