[FFmpeg-cvslog] avformat/smoothstreamingenc: Add missing "goto fail"

Michael Niedermayer git at videolan.org
Wed Jan 14 00:36:24 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jan 14 00:17:52 2015 +0100| [f2e12f8942e5434df3d0f41851a1560fc4663dae] | committer: Michael Niedermayer

avformat/smoothstreamingenc: Add missing "goto fail"

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f2e12f8942e5434df3d0f41851a1560fc4663dae
---

 libavformat/smoothstreamingenc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c
index 597f945..075b303 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);
 



More information about the ffmpeg-cvslog mailing list