[FFmpeg-cvslog] avformat/hlsenc: fix cleanup after avformat_write_header()

Nicolas Martyanoff git at videolan.org
Tue Jul 29 16:42:14 CEST 2014


ffmpeg | branch: master | Nicolas Martyanoff <khaelin at gmail.com> | Tue Jul 29 16:24:11 2014 +0200| [0c889da8cb53a7e26d5303ad00699c92d636e831] | committer: Michael Niedermayer

avformat/hlsenc: fix cleanup after avformat_write_header()

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

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

 libavformat/hlsenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index ca42b44..76a7eef 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -241,7 +241,7 @@ static int hls_write_header(AVFormatContext *s)
         goto fail;
 
     if ((ret = avformat_write_header(hls->avf, NULL)) < 0)
-        return ret;
+        goto fail;
 
 
 fail:



More information about the ffmpeg-cvslog mailing list