1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

doc/examples/qsv_transcode: Fix a bug when use more than one parameter set

Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
This commit is contained in:
Wenbin Chen 2023-03-02 10:54:31 +08:00 committed by Haihao Xiang
parent 55c8c9493f
commit 2db22d14bf

View File

@ -88,7 +88,7 @@ static int dynamic_set_parameter(AVCodecContext *avctx)
if (current_setting_number < setting_number &&
frame_number == dynamic_setting[current_setting_number].frame_number) {
AVDictionaryEntry *e = NULL;
ret = str_to_dict(dynamic_setting[current_setting_number].optstr, &opts);
ret = str_to_dict(dynamic_setting[current_setting_number++].optstr, &opts);
if (ret < 0) {
fprintf(stderr, "The dynamic parameter is wrong\n");
goto fail;