aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2017-12-04 12:06:26 +0800
committerSteven Liu <lq@chinaffmpeg.org>2017-12-04 12:06:26 +0800
commit1cfde7abd0008e58fcd10f8804812e72a1a5295a (patch)
treeb20583eedc2de5c1d04d2a80ffe4750243b31410
parentad6946b8189e5e17796f1d5bf86d97ee619009b8 (diff)
downloadffmpeg-1cfde7abd0008e58fcd10f8804812e72a1a5295a.tar.gz
avformat/dashenc: add avpriv_io_move return value check
fix cid: 1424883 Suggested-by: Moritz Barsnick <barsnick@gmx.net> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
-rw-r--r--libavformat/dashenc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 22ef3103dc..5687530f2d 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, "renaming file %s to %s failed\n\n", temp_filename_hls, filename_hls);
+ }
}
}