[FFmpeg-cvslog] avcodec/mpeg12dec: Remove write-only assignment

Andreas Rheinhardt git at videolan.org
Wed Jun 12 14:16:10 EEST 2024


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Apr 22 02:05:32 2024 +0200| [bbe10bcae84dd5ee30f2df464299c4f3d14b3042] | committer: Andreas Rheinhardt

avcodec/mpeg12dec: Remove write-only assignment

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

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

 libavcodec/mpeg12dec.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index d3005d032f..002ddfe72b 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -2788,8 +2788,6 @@ static int ipu_decode_frame(AVCodecContext *avctx, AVFrame *frame,
                                                       m->intra_scantable.permutated,
                                                       m->last_dc, s->block[n],
                                                       n, m->qscale);
-                    if (ret >= 0)
-                        m->block_last_index[n] = ret;
                 } else {
                     ret = mpeg2_decode_block_intra(m, s->block[n], n);
                 }



More information about the ffmpeg-cvslog mailing list