[FFmpeg-devel] [PATCH 1/6] avcodec/mpegvideo: Ignore skip_idct for encoders

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Mon Oct 17 04:33:35 EEST 2022


It is documented to be unused for encoders.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/mpegvideo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 5095149eaa..448b65bb96 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1413,7 +1413,6 @@ void mpv_reconstruct_mb_internal(MpegEncContext *s, int16_t block[12][64],
                         ff_mpv_motion(s, dest_y, dest_cb, dest_cr, 1, s->next_picture.f->data, op_pix, op_qpix);
                     }
                 }
-            }
 
             /* skip dequant / idct if we are really late ;) */
             if(s->avctx->skip_idct){
@@ -1422,6 +1421,7 @@ void mpv_reconstruct_mb_internal(MpegEncContext *s, int16_t block[12][64],
                    || s->avctx->skip_idct >= AVDISCARD_ALL)
                     goto skip_idct;
             }
+            }
 
             /* add dct residue */
             if (IS_ENCODER(s) || !(IS_MPEG12(s) || s->msmpeg4_version
-- 
2.34.1



More information about the ffmpeg-devel mailing list