提交 f25f6ece 编写于 作者: Z Zhang Rui

ijkmeta: fix a possible leak

上级 34980965
......@@ -184,8 +184,11 @@ void ijkmeta_set_avformat_context_l(IjkMediaMeta *meta, AVFormatContext *ic)
for (int i = 0; i < ic->nb_streams; i++) {
AVStream *st = ic->streams[i];
if (!st)
continue;
IjkMediaMeta *stream_meta = ijkmeta_create();
if (!st || !stream_meta)
if (!stream_meta)
continue;
if (st->codec) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册