[FFmpeg-cvslog] doc/examples/qsv_transcode: Fix a bug when use more than one parameter set

Wenbin Chen git at videolan.org
Fri Mar 17 08:14:38 EET 2023


ffmpeg | branch: master | Wenbin Chen <wenbin.chen at intel.com> | Thu Mar  2 10:54:31 2023 +0800| [2db22d14bf5f0ae62e5ee335017abba3ac458ce9] | committer: Haihao Xiang

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

Signed-off-by: Wenbin Chen <wenbin.chen at intel.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2db22d14bf5f0ae62e5ee335017abba3ac458ce9
---

 doc/examples/qsv_transcode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/examples/qsv_transcode.c b/doc/examples/qsv_transcode.c
index 7ea3ef5674..48128b200c 100644
--- a/doc/examples/qsv_transcode.c
+++ b/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;



More information about the ffmpeg-cvslog mailing list