diff options
author | Raymond Hilseth <rhi@vizrt.com> | 2016-01-06 09:57:41 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-28 22:32:28 +0100 |
commit | c66a6369e4880434c3476866aa8996c3c309edae (patch) | |
tree | c4f738dfe12a8b78514d329418177305caf0e654 | |
parent | 20e4863ab14a6bcf00d469322075ff5e5c61e483 (diff) | |
download | ffmpeg-streaming-c66a6369e4880434c3476866aa8996c3c309edae.zip ffmpeg-streaming-c66a6369e4880434c3476866aa8996c3c309edae.tar.gz |
avformat/dashenc: Enable dash output to work when the output isn't a local file
Use avpriv_io_move instead of ff_rename to support more than only
the file protocol.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/dashenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 1dd1a9d..fbccbd1 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -549,7 +549,7 @@ static int write_manifest(AVFormatContext *s, int final) avio_printf(out, "</MPD>\n"); avio_flush(out); ff_format_io_close(s, &out); - return ff_rename(temp_filename, s->filename, s); + return avpriv_io_move(temp_filename, s->filename); } static int dash_write_header(AVFormatContext *s) @@ -859,7 +859,7 @@ static int dash_flush(AVFormatContext *s, int final, int stream) } else { ffurl_close(os->out); os->out = NULL; - ret = ff_rename(temp_path, full_path, s); + ret = avpriv_io_move(temp_path, full_path); if (ret < 0) break; } |