aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2017-03-07 09:56:42 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-14 12:20:15 +0200
commit4ed0177e4a2ab9152beb1874b9241d6a44e5be9e (patch)
tree6eaa095e9ec87f0773e1360f1ebb250ce950d692
parenta99a7bb071b5a49498d7c6c98b8e2332595837b8 (diff)
downloadffmpeg-4ed0177e4a2ab9152beb1874b9241d6a44e5be9e.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. (cherry picked from commit b4b8ca24f62473528949fe047085eb084364124b) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 2031d01b78..2d57aea469 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -2771,7 +2771,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]);