diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-07 10:37:53 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-09 11:32:13 +0100 |
commit | a33e0ed11e72c9463dcfee240aa7cf5c2a57b102 (patch) | |
tree | 8df277d780e0999ebd847164a48069e473bccaee | |
parent | b9f4c1231f8f07d8e62114b6d14f6aa064d19f43 (diff) | |
download | ffmpeg-a33e0ed11e72c9463dcfee240aa7cf5c2a57b102.tar.gz |
avformat/utils: Fix wrong indentation
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavformat/utils.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index c84f6a2348..5b4156cad8 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1480,23 +1480,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') { |