[FFmpeg-cvslog] doc/examples/qsv_transcode: Simplify str_to_dict() loop

Michael Niedermayer git at videolan.org
Sat May 25 01:56:22 EEST 2024


ffmpeg | branch: release/6.1 | Michael Niedermayer <michael at niedermayer.cc> | Wed Apr 24 03:28:00 2024 +0200| [9493a2d06619290cf154494b8c497a4daa0b5880] | committer: Michael Niedermayer

doc/examples/qsv_transcode: Simplify str_to_dict() loop

Fixes: CID1517022 Logically dead code

Sponsored-by: Sovereign Tech Fund
Reviewed-by: "Xiang, Haihao" <haihao.xiang at intel.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 191950d1bfc3924d1b54f236b2c35149ba4487a1)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

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

diff --git a/doc/examples/qsv_transcode.c b/doc/examples/qsv_transcode.c
index 1d7fea966f..10f5b6859f 100644
--- a/doc/examples/qsv_transcode.c
+++ b/doc/examples/qsv_transcode.c
@@ -75,8 +75,7 @@ static int str_to_dict(char* optstr, AVDictionary **opt)
         if (value == NULL)
             return AVERROR(ENAVAIL);
         av_dict_set(opt, key, value, 0);
-    } while(key != NULL);
-    return 0;
+    } while(1);
 }
 
 static int dynamic_set_parameter(AVCodecContext *avctx)



More information about the ffmpeg-cvslog mailing list