OSDN Git Service

smoothstreamingenc: Try writing a manifest when opening the muxer
authorMartin Storsjö <martin@martin.st>
Fri, 5 Oct 2012 23:30:18 +0000 (02:30 +0300)
committerMartin Storsjö <martin@martin.st>
Sat, 6 Oct 2012 10:05:33 +0000 (13:05 +0300)
This allows failing cleaner and earlier if unable to write to
the output directory.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/smoothstreamingenc.c

index cc34f7e..bafed70 100644 (file)
@@ -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)