diff options
author | wm4 <nfxjfg@googlemail.com> | 2017-03-07 09:56:42 +0100 |
---|---|---|
committer | wm4 <nfxjfg@googlemail.com> | 2017-03-17 00:29:03 +0100 |
commit | b4b8ca24f62473528949fe047085eb084364124b (patch) | |
tree | 5e566596fe30d2f37bee164b04baba781cb9b563 | |
parent | 1cd58e915436ea84eb861327f3897ef54058ee42 (diff) | |
download | ffmpeg-b4b8ca24f62473528949fe047085eb084364124b.tar.gz |
avcodec: fix uninitialized variable read
This cna happen if the user tries to call the new decode API for
subtitles.
Fixes CID 1402071.
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |