提交 b4b8ca24 编写于 作者: W wm4

avcodec: fix uninitialized variable read

This cna happen if the user tries to call the new decode API for
subtitles.

Fixes CID 1402071.
上级 1cd58e91
......@@ -2787,7 +2787,7 @@ void avsubtitle_free(AVSubtitle *sub)
static int do_decode(AVCodecContext *avctx, AVPacket *pkt)
{
int got_frame;
int got_frame = 0;
int ret;
av_assert0(!avctx->internal->buffer_frame->buf[0]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册