[FFmpeg-cvslog] avformat/utils: Fix wrong indentation

Andreas Rheinhardt git at videolan.org
Thu Dec 9 12:42:34 EET 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Dec  7 10:37:53 2021 +0100| [a33e0ed11e72c9463dcfee240aa7cf5c2a57b102] | committer: Andreas Rheinhardt

avformat/utils: Fix wrong indentation

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a33e0ed11e72c9463dcfee240aa7cf5c2a57b102
---

 libavformat/utils.c | 34 +++++++++++++++++-----------------
 1 file 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') {



More information about the ffmpeg-cvslog mailing list