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>
This commit is contained in:
Michael Niedermayer 2024-04-24 03:28:00 +02:00
parent c9c11a0866
commit 191950d1bf
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
1 changed files with 1 additions and 2 deletions

View File

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