[FFmpeg-cvslog] avcodec: fix uninitialized variable read
wm4
git at videolan.org
Fri Mar 17 02:05:27 EET 2017
ffmpeg | branch: master | wm4 <nfxjfg at googlemail.com> | Tue Mar 7 09:56:42 2017 +0100| [b4b8ca24f62473528949fe047085eb084364124b] | committer: wm4
avcodec: fix uninitialized variable read
This cna happen if the user tries to call the new decode API for
subtitles.
Fixes CID 1402071.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b4b8ca24f62473528949fe047085eb084364124b
---
libavcodec/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index d41ea57..6f7b2e7 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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]);
More information about the ffmpeg-cvslog
mailing list