[FFmpeg-devel] [PATCH] fftools/ffmpeg_opt: Fix mixed declarations and code

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Nov 6 21:08:27 EET 2019


Am Mi., 6. Nov. 2019 um 13:18 Uhr schrieb Andreas Rheinhardt
<andreas.rheinhardt at gmail.com>:
>
> Introduced in ed3c317d.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  fftools/ffmpeg_opt.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
> index af9a9a6acb..f4ccf3f65e 100644
> --- a/fftools/ffmpeg_opt.c
> +++ b/fftools/ffmpeg_opt.c
> @@ -3008,9 +3008,10 @@ static int opt_old2new(void *optctx, const char *opt, const char *arg)
>  {
>      OptionsContext *o = optctx;
>      char *s = av_asprintf("%s:%c", opt + 1, *opt);
> +    int ret;

Shouldn't the new declarations be above the call to av_asprintf()?

Carl Eugen


More information about the ffmpeg-devel mailing list