diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-04-24 03:28:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-04-25 03:24:59 +0200 |
commit | 191950d1bfc3924d1b54f236b2c35149ba4487a1 (patch) | |
tree | c86f589d44769574565d05963cdf44ae3381c15b /doc | |
parent | c9c11a0866d45827201b034349bceb2dc58a3499 (diff) | |
download | ffmpeg-191950d1bfc3924d1b54f236b2c35149ba4487a1.tar.gz |
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@intel.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/qsv_transcode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/examples/qsv_transcode.c b/doc/examples/qsv_transcode.c index a4440a3403..8e843ddd84 100644 --- a/doc/examples/qsv_transcode.c +++ b/doc/examples/qsv_transcode.c @@ -76,8 +76,7 @@ static int str_to_dict(char* optstr, AVDictionary **opt) if (value == NULL) return AVERROR(EINVAL); av_dict_set(opt, key, value, 0); - } while(key != NULL); - return 0; + } while(1); } static int dynamic_set_parameter(AVCodecContext *avctx) |