Commit 1cfde7ab authored by Steven Liu's avatar Steven Liu

avformat/dashenc: add avpriv_io_move return value check

fix cid: 1424883
Suggested-by: 's avatarMoritz Barsnick <barsnick@gmx.net>
Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent ad6946b8
...@@ -384,7 +384,9 @@ static void output_segment_list(OutputStream *os, AVIOContext *out, DASHContext ...@@ -384,7 +384,9 @@ static void output_segment_list(OutputStream *os, AVIOContext *out, DASHContext
avio_close(out_hls); avio_close(out_hls);
if (use_rename) 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);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment