On Tue, 2022-09-06 at 17:22 +0800, Wenbin Chen wrote: > mjpeg_qsv don't support dynamic resetting, so skip it. > > Signed-off-by: Wenbin Chen <[email protected]> > --- > libavcodec/qsvenc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c > index 7ac5390f10..842cfb845e 100644 > --- a/libavcodec/qsvenc.c > +++ b/libavcodec/qsvenc.c > @@ -1680,7 +1680,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);
Patchset LGTM, will apply. -Haihao _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
