[FFmpeg-devel] [PATCH 1/2] avformat/utils: Fix wrong indentation
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Wed Dec 8 15:48:25 EET 2021
Andreas Rheinhardt:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> libavformat/utils.c | 34 +++++++++++++++++-----------------
> 1 file changed, 17 insertions(+), 17 deletions(-)
>
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index 7840e8717c..827e7c8d5a 100644
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -1479,23 +1479,23 @@ static int match_stream_specifier(AVFormatContext *s, AVStream *st,
> int ret;
>
> if (match) {
> - spec += 2;
> - val = strchr(spec, ':');
> -
> - key = val ? av_strndup(spec, val - spec) : av_strdup(spec);
> - if (!key)
> - return AVERROR(ENOMEM);
> -
> - tag = av_dict_get(st->metadata, key, NULL, 0);
> - if (tag) {
> - if (!val || !strcmp(tag->value, val + 1))
> - ret = 1;
> - else
> - ret = 0;
> - } else
> - ret = 0;
> -
> - av_freep(&key);
> + spec += 2;
> + val = strchr(spec, ':');
> +
> + key = val ? av_strndup(spec, val - spec) : av_strdup(spec);
> + if (!key)
> + return AVERROR(ENOMEM);
> +
> + tag = av_dict_get(st->metadata, key, NULL, 0);
> + if (tag) {
> + if (!val || !strcmp(tag->value, val + 1))
> + ret = 1;
> + else
> + ret = 0;
> + } else
> + ret = 0;
> +
> + av_freep(&key);
> }
> return match && ret;
> } else if (*spec == 'u' && *(spec + 1) == '\0') {
>
Will apply this patchset tonight unless there are objections.
- Andreas
More information about the ffmpeg-devel
mailing list