[FFmpeg-cvslog] avcodec/mpegvideo: Don't pretend dct_init can fail

Andreas Rheinhardt git at videolan.org
Thu Jun 20 19:59:16 EEST 2024


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Jun  2 06:16:16 2024 +0200| [4339d2c11cb9261bd9927e6b209165eaf049fa12] | committer: Andreas Rheinhardt

avcodec/mpegvideo: Don't pretend dct_init can fail

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4339d2c11cb9261bd9927e6b209165eaf049fa12
---

 libavcodec/mpegvideo.c | 4 +---
 1 file changed, 1 insertion(+), 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,



More information about the ffmpeg-cvslog mailing list