avformat/utils: propagate return value of ff_format_io_close in ff_format_shift_data

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2021-12-11 19:30:59 +01:00
parent 26d6c81dc6
commit 573b6b8a60
1 changed files with 1 additions and 1 deletions

View File

@ -2085,7 +2085,7 @@ int ff_format_shift_data(AVFormatContext *s, int64_t read_start, int shift_size)
avio_write(s->pb, read_buf[read_buf_id], n);
pos += n;
} while (pos < pos_end);
ff_format_io_close(s, &read_pb);
ret = ff_format_io_close(s, &read_pb);
end:
av_free(buf);