[FFmpeg-cvslog] libavcodec/qsvenc: skip parameter resetting on mjpeg_qsv

Wenbin Chen git at videolan.org
Fri Sep 9 04:42:57 EEST 2022


ffmpeg | branch: master | Wenbin Chen <wenbin.chen-at-intel.com at ffmpeg.org> | Tue Sep  6 17:22:52 2022 +0800| [04e49bbbb1cdf4a67e6533dc8ae29a8de1ba6837] | committer: Haihao Xiang

libavcodec/qsvenc: skip parameter resetting on mjpeg_qsv

mjpeg_qsv don't support dynamic resetting, so skip it.

Signed-off-by: Wenbin Chen <wenbin.chen at intel.com>

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

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

diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 31ff3b76ed..941a12ffbd 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -1683,7 +1683,7 @@ static int update_parameters(AVCodecContext *avctx, QSVEncContext *q,
 {
     int needReset = 0, ret = 0;
 
-    if (!frame)
+    if (!frame || avctx->codec_id == AV_CODEC_ID_MJPEG)
         return 0;
 
     needReset = update_qp(avctx, q);



More information about the ffmpeg-cvslog mailing list