[FFmpeg-cvslog] avformat/hls: fix CID 1426930

Aman Gupta git at videolan.org
Sun Dec 24 22:00:26 EET 2017


ffmpeg | branch: master | Aman Gupta <aman at tmm1.net> | Sun Dec 24 11:58:30 2017 -0800| [3d95868d1bf2197597fbcbddd984eac175325a14] | committer: Aman Gupta

avformat/hls: fix CID 1426930

Signed-off-by: Aman Gupta <aman at tmm1.net>

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

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

diff --git a/libavformat/hls.c b/libavformat/hls.c
index f718f2e6c1..5dadcfcc29 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1197,7 +1197,7 @@ static int open_input(HLSContext *c, struct playlist *pls, struct segment *seg,
         AVDictionary *opts2 = NULL;
         char iv[33], key[33], url[MAX_URL_SIZE];
         if (strcmp(seg->key, pls->key_url)) {
-            AVIOContext *pb;
+            AVIOContext *pb = NULL;
             if (open_url(pls->parent, &pb, seg->key, c->avio_opts, opts, NULL) == 0) {
                 ret = avio_read(pb, pls->key, sizeof(pls->key));
                 if (ret != sizeof(pls->key)) {



More information about the ffmpeg-cvslog mailing list