mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/aviobuf: fix indentation
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
84d8815499
commit
25ced19aa3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user