summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2021-12-11 19:30:59 +0100
committerMarton Balint <cus@passwd.hu>2022-01-03 22:54:12 +0100
commit573b6b8a607398c5f34108efda9c29d41c5727ff (patch)
tree9715b372ec7203fa394d57194a678b88e8316039
parent26d6c81dc6ed205005dd34f837f52569c1cb3903 (diff)
downloadffmpeg-573b6b8a607398c5f34108efda9c29d41c5727ff.tar.gz
avformat/utils: propagate return value of ff_format_io_close in ff_format_shift_data
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index a78797ef57..23e81bda9d 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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);