smoothstreamingenc: Add a missing "goto fail"
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 13 Jan 2015 23:17:52 +0000 (00:17 +0100)
committerMartin Storsjö <martin@martin.st>
Mon, 19 Jan 2015 20:31:08 +0000 (22:31 +0200)
This goto wasn't necessary originally, but it should have been
added when the write_manifest call was added in 8e276378.

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

index ddd8da7469ebe7356143fe935586b22da29c0639..1db2dba24f8ab080b62180e410d8c5cd45e385b0 100644 (file)
@@ -394,6 +394,7 @@ static int ism_write_header(AVFormatContext *s)
     if (!c->has_video && c->min_frag_duration <= 0) {
         av_log(s, AV_LOG_WARNING, "no video stream and no min frag duration set\n");
         ret = AVERROR(EINVAL);
+        goto fail;
     }
     ret = write_manifest(s, 0);