[FFmpeg-devel] [PATCH 4/5] doc/examples/qsv_transcode: Simplify str_to_dict() loop
Michael Niedermayer
michael at niedermayer.cc
Thu Apr 25 00:07:17 EEST 2024
On Wed, Apr 24, 2024 at 05:18:55AM +0000, Xiang, Haihao wrote:
> On Wo, 2024-04-24 at 03:45 +0200, Michael Niedermayer wrote:
> > Fixes: CID1517022 Logically dead code
> >
> > Sponsored-by: Sovereign Tech Fund
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> > 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 a4440a3403f..8e843ddd84c 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)
>
> LGTM, thanks for catching & fixing this.
will apply
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240424/c67cc3cd/attachment.sig>
More information about the ffmpeg-devel
mailing list