From b4b8ca24f62473528949fe047085eb084364124b Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 7 Mar 2017 09:56:42 +0100 Subject: avcodec: fix uninitialized variable read This cna happen if the user tries to call the new decode API for subtitles. Fixes CID 1402071. --- libavcodec/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec') diff --git a/libavcodec/utils.c b/libavcodec/utils.c index d41ea572f5..6f7b2e7af7 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]); -- cgit v1.2.3