提交 70e292be 编写于 作者: J Jun Zhao

lavf/rtmpproto: Don't unref uninitialized buffers

This happens if ffurl_open_whitelist fails and stream is unset.
Signed-off-by: NJun Zhao <barryjzhao@tencent.com>
上级 46d2a67f
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册