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

Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
pull/389/head
Wenbin Chen 2 years ago committed by Haihao Xiang
parent 55c8c9493f
commit 2db22d14bf
  1. 2
      doc/examples/qsv_transcode.c

@ -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;

Loading…
Cancel
Save