[FFmpeg-cvslog] avformat/utils: propagate return value of ff_format_io_close in ff_format_shift_data

Marton Balint git at videolan.org
Tue Jan 4 15:26:58 EET 2022


ffmpeg | branch: release/5.0 | Marton Balint <cus at passwd.hu> | Sat Dec 11 19:30:59 2021 +0100| [573b6b8a607398c5f34108efda9c29d41c5727ff] | committer: Marton Balint

avformat/utils: propagate return value of ff_format_io_close in ff_format_shift_data

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=573b6b8a607398c5f34108efda9c29d41c5727ff
---

 libavformat/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the ffmpeg-cvslog mailing list