From 8e2763786dd0ba0e895eafd6959a768608513eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sat, 6 Oct 2012 02:30:18 +0300 Subject: [PATCH] smoothstreamingenc: Try writing a manifest when opening the muxer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows failing cleaner and earlier if unable to write to the output directory. Signed-off-by: Martin Storsjö --- libavformat/smoothstreamingenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index cc34f7eb4f..bafed70f46 100644 --- a/libavformat/smoothstreamingenc.c +++ b/libavformat/smoothstreamingenc.c @@ -386,6 +386,7 @@ static int ism_write_header(AVFormatContext *s) av_log(s, AV_LOG_WARNING, "no video stream and no min frag duration set\n"); ret = AVERROR(EINVAL); } + ret = write_manifest(s, 0); fail: if (ret)