1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avformat/matroskadec: Reindent after the previous commit

Reviewed-by: Ridley Combs <rcombs@rcombs.me>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt
2021-02-16 17:14:03 +01:00
parent 0a99c3dadc
commit 7471f473c5

View File

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