Message ID | 20220906092258.994742-1-wenbin.chen@intel.com |
---|---|
State | Accepted |
Commit | 04e49bbbb1cdf4a67e6533dc8ae29a8de1ba6837 |
Headers | show |
Series | [FFmpeg-devel,v2,1/7] libavcodec/qsvenc: skip parameter resetting on mjpeg_qsv | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
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 <wenbin.chen@intel.com> > --- > 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
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);
mjpeg_qsv don't support dynamic resetting, so skip it. Signed-off-by: Wenbin Chen <wenbin.chen@intel.com> --- libavcodec/qsvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)