diff mbox series

[FFmpeg-devel,5/5] avformat/utils: propagate return value of ff_format_io_close in ff_format_shift_data

Message ID 20211227002613.25069-5-cus@passwd.hu
State Accepted
Commit 573b6b8a607398c5f34108efda9c29d41c5727ff
Headers show
Series [FFmpeg-devel,1/5] avformat/aviobuf: set AVIOContext->error on bprint buffer ENOMEM | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc fail Make fate failed

Commit Message

Marton Balint Dec. 27, 2021, 12:26 a.m. UTC
Signed-off-by: Marton Balint <cus@passwd.hu>
---
 libavformat/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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);