[FFmpeg-devel] [PATCH 1/6] fftools/ffprobe: make option strings dynamically allocated
Anton Khirnov
anton at khirnov.net
Wed Jan 17 14:32:31 EET 2024
Quoting Zhao Zhili (2024-01-17 12:22:10)
>
>
> > On Jan 17, 2024, at 17:22, Anton Khirnov <anton at khirnov.net> wrote:
> >
> > Do not store the supplied arg pointer directly. While that is valid for
> > now, arg will become ephemeral in the future commits.
> > ---
> > fftools/ffprobe.c | 18 +++++++++++++-----
> > 1 file changed, 13 insertions(+), 5 deletions(-)
> >
> > diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
> > index f00ba48620..3a7aae3572 100644
> > --- a/fftools/ffprobe.c
> > +++ b/fftools/ffprobe.c
> > @@ -3827,8 +3827,10 @@ static int opt_input_file(void *optctx, const char *arg)
> > return AVERROR(EINVAL);
> > }
> > if (!strcmp(arg, "-"))
> > - arg = "fd:";
> > - input_filename = arg;
> > + arg = "pipe:";
>
> Does the change of protocol on purpose, and why?
Good catch, it was a rebase fail.
Fixed locally.
Thanks,
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list