avformat/smoothstreamingenc: Add missing "goto fail"
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 13 Jan 2015 23:17:52 +0000 (00:17 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 13 Jan 2015 23:17:52 +0000 (00:17 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/smoothstreamingenc.c

index 597f945164398892def733b89008358366c2a5a4..075b303aa93fce2b5be861f95cf16a4621d8bb93 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);