diff options
author | Jan Sebechlebsky <sebechlebskyjan@gmail.com> | 2016-07-04 16:45:14 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2016-07-16 01:30:01 +0200 |
commit | df9cc7f0a90cdaa2183040425623f479159f206d (patch) | |
tree | ca5e21e39ad298e74b0e84d9a9c3c32664882e50 /libavformat/tee.c | |
parent | 6a3515a5a49e985b0f2ce430c9cae9e21dd6d7c2 (diff) | |
download | ffmpeg-df9cc7f0a90cdaa2183040425623f479159f206d.tar.gz |
avformat/tee: Use ff_format_output_open() function
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/tee.c')
-rw-r--r-- | libavformat/tee.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libavformat/tee.c b/libavformat/tee.c index e750752a84..daddba5741 100644 --- a/libavformat/tee.c +++ b/libavformat/tee.c @@ -300,12 +300,11 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave) goto end; } - if (!(avf2->oformat->flags & AVFMT_NOFILE)) { - if ((ret = avf2->io_open(avf2, &avf2->pb, filename, AVIO_FLAG_WRITE, NULL)) < 0) { - av_log(avf, AV_LOG_ERROR, "Slave '%s': error opening: %s\n", - slave, av_err2str(ret)); - goto end; - } + ret = ff_format_output_open(avf2, filename, NULL); + if (ret < 0) { + av_log(avf, AV_LOG_ERROR, "Slave '%s': error opening: %s\n", slave, + av_err2str(ret)); + goto end; } if ((ret = avformat_write_header(avf2, &options)) < 0) { |