mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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@intel.com>
This commit is contained in:
parent
836b8001c9
commit
04e49bbbb1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user