summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-14 01:13:14 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-20 07:09:11 +0200
commitcab876f5f477d54b0f6faccf036e3cbb536b1a60 (patch)
treeb73a3b75369293f87136197c230e4d152d53886f /libavcodec
parenta5e59fec071b1b94d8e2792e3f982ed4040b8708 (diff)
avcodec/mpegvideo: Ignore skip_idct for encoders
It is documented to be unused for encoders. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 1 insertions, 1 deletions
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