From ea3fc9fe68752eb1b9078b28bea18a1e781d1c2c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 14 Jan 2015 00:17:52 +0100 Subject: smoothstreamingenc: Add a missing "goto fail" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ö --- libavformat/smoothstreamingenc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat') diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index ddd8da7469..1db2dba24f 100644 --- a/libavformat/smoothstreamingenc.c +++ b/libavformat/smoothstreamingenc.c @@ -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); -- cgit v1.2.3