diff options
author | Jun Zhao <barryjzhao@tencent.com> | 2019-12-03 17:50:45 +0800 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2019-12-07 14:09:12 +0800 |
commit | 70e292becf3fc62535aefd6b48c5834f89eed7f4 (patch) | |
tree | 904cf952b4e54dc66f5fbf3cfd826f541b794f14 /libavformat | |
parent | 46d2a67f80e60128791d3d254fc6c17db6b94db9 (diff) | |
download | ffmpeg-70e292becf3fc62535aefd6b48c5834f89eed7f4.tar.gz |
lavf/rtmpproto: Don't unref uninitialized buffers
This happens if ffurl_open_whitelist fails and stream is unset.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtmpproto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 5274993ec6..42aacbd1b9 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -1111,7 +1111,7 @@ static int rtmp_calc_swfhash(URLContext *s) RTMPContext *rt = s->priv_data; uint8_t *in_data = NULL, *out_data = NULL, *swfdata; int64_t in_size; - URLContext *stream; + URLContext *stream = NULL; char swfhash[32]; int swfsize; int ret = 0; |