]> git.sesse.net Git - ffmpeg/commitdiff
avformat/matroskadec: Reindent after the previous commit
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 16 Feb 2021 16:14:03 +0000 (17:14 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 22 Feb 2021 02:58:13 +0000 (03:58 +0100)
Reviewed-by: Ridley Combs <rcombs@rcombs.me>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/matroskadec.c

index bfc6641a5fa876a3caaeabbb8a8f65364fcd7180..8f7ab64ba5c0bf45ae3b9ba9c5571a8f76818328 100644 (file)
@@ -1006,15 +1006,15 @@ static int ebml_read_ascii(AVIOContext *pb, int size,
         if (!res)
             return AVERROR(ENOMEM);
     } else {
-    /* EBML strings are usually not 0-terminated, so we allocate one
-     * byte more, read the string and NULL-terminate it ourselves. */
-    if (!(res = av_malloc(size + 1)))
-        return AVERROR(ENOMEM);
-    if ((ret = avio_read(pb, (uint8_t *) res, size)) != size) {
-        av_free(res);
-        return ret < 0 ? ret : NEEDS_CHECKING;
-    }
-    (res)[size] = '\0';
+        /* EBML strings are usually not 0-terminated, so we allocate one
+         * byte more, read the string and NUL-terminate it ourselves. */
+        if (!(res = av_malloc(size + 1)))
+            return AVERROR(ENOMEM);
+        if ((ret = avio_read(pb, (uint8_t *) res, size)) != size) {
+            av_free(res);
+            return ret < 0 ? ret : NEEDS_CHECKING;
+        }
+        (res)[size] = '\0';
     }
     av_free(*str);
     *str = res;