[FFmpeg-cvslog] avcodec/mpegvideo: Ignore skip_idct for encoders

Andreas Rheinhardt git at videolan.org
Thu Oct 20 08:47:48 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Oct 14 01:13:14 2022 +0200| [cab876f5f477d54b0f6faccf036e3cbb536b1a60] | committer: Andreas Rheinhardt

avcodec/mpegvideo: Ignore skip_idct for encoders

It is documented to be unused for encoders.

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

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

 libavcodec/mpegvideo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 87dae1b098..1801dd6589 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



More information about the ffmpeg-cvslog mailing list