[FFmpeg-cvslog] avcodec/mpeg12dec: Remove unused function parameter

Andreas Rheinhardt git at videolan.org
Thu Jul 3 21:55:32 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Jun 15 23:17:28 2025 +0200| [86ee71f4e9893818318519bed703dbb29c8fbf6e] | committer: Andreas Rheinhardt

avcodec/mpeg12dec: Remove unused function parameter

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

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

 libavcodec/mpeg12dec.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index ec8b213206..a056dd87cc 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -395,7 +395,7 @@ static inline int get_dmv(MpegEncContext *s)
 #define MT_16X8  2
 #define MT_DMV   3
 
-static int mpeg_decode_mb(MpegEncContext *s, int16_t block[12][64])
+static int mpeg_decode_mb(MPVContext *const s)
 {
     int i, j, k, cbp, val, mb_type, motion_type;
     const int mb_block_count = 4 + (1 << s->chroma_format);
@@ -1449,7 +1449,8 @@ static int mpeg_decode_slice(MpegEncContext *s, int mb_y,
     }
 
     for (;;) {
-        if ((ret = mpeg_decode_mb(s, s->block)) < 0)
+        ret = mpeg_decode_mb(s);
+        if (ret < 0)
             return ret;
 
         // Note motion_val is normally NULL unless we want to extract the MVs.



More information about the ffmpeg-cvslog mailing list