[FFmpeg-devel] [PATCH 3/3] avformat/dashenc: add avpriv_io_move return value check
Steven Liu
lq at chinaffmpeg.org
Sat Dec 2 04:44:02 EET 2017
fix cid: 1424883
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
---
libavformat/dashenc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 22ef3103dc..bd0a98da4d 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -384,7 +384,9 @@ static void output_segment_list(OutputStream *os, AVIOContext *out, DASHContext
avio_close(out_hls);
if (use_rename)
- avpriv_io_move(temp_filename_hls, filename_hls);
+ if (avpriv_io_move(temp_filename_hls, filename_hls) < 0) {
+ av_log(os->ctx, AV_LOG_WARNING, "rename file from %s to %s faild\n", temp_filename_hls, filename_hls);
+ }
}
}
--
2.11.0 (Apple Git-81)
More information about the ffmpeg-devel
mailing list