summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-07 10:37:53 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-09 11:32:13 +0100
commita33e0ed11e72c9463dcfee240aa7cf5c2a57b102 (patch)
tree8df277d780e0999ebd847164a48069e473bccaee /libavformat
parentb9f4c1231f8f07d8e62114b6d14f6aa064d19f43 (diff)
avformat/utils: Fix wrong indentation
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c34
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') {