summaryrefslogtreecommitdiff
path: root/libavformat/matroskadec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-16 17:14:03 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-22 03:58:13 +0100
commit7471f473c587fe4acb07bdc5c7800ae2f361fc30 (patch)
tree780996c349063ade95fe2bd8449e326275dabc6f /libavformat/matroskadec.c
parent0a99c3dadc3f9cef922c5c61a2ef4bc58af10a1a (diff)
avformat/matroskadec: Reindent after the previous commit
Reviewed-by: Ridley Combs <rcombs@rcombs.me> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index bfc6641a5f..8f7ab64ba5 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -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;