From 25ced19aa3097abc0f8b76045efa06b3332c8b94 Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Tue, 29 Sep 2020 00:16:47 +0200 Subject: [PATCH] avformat/aviobuf: fix indentation Signed-off-by: Marton Balint --- libavformat/aviobuf.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 2f1abe7d81..c4195e310b 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -1019,14 +1019,14 @@ int ffio_ensure_seekback(AVIOContext *s, int64_t buf_size) update_checksum(s); memmove(s->buffer, s->buf_ptr, filled); } else { - buffer = av_malloc(buf_size); - if (!buffer) - return AVERROR(ENOMEM); - update_checksum(s); - memcpy(buffer, s->buf_ptr, filled); - av_free(s->buffer); - s->buffer = buffer; - s->buffer_size = buf_size; + buffer = av_malloc(buf_size); + if (!buffer) + return AVERROR(ENOMEM); + update_checksum(s); + memcpy(buffer, s->buf_ptr, filled); + av_free(s->buffer); + s->buffer = buffer; + s->buffer_size = buf_size; } s->buf_ptr = s->buffer; s->buf_end = s->buffer + filled;