From f2e12f8942e5434df3d0f41851a1560fc4663dae Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 14 Jan 2015 00:17:52 +0100 Subject: avformat/smoothstreamingenc: Add missing "goto fail" Signed-off-by: Michael Niedermayer --- libavformat/smoothstreamingenc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/smoothstreamingenc.c') diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index 597f945164..075b303aa9 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