diff options
author | wm4 <[email protected]> | 2017-03-07 09:56:42 +0100 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2017-05-16 16:00:22 +0200 |
commit | 2f8356df12af7d1b00c664d8f2b4d012efd648d8 (patch) | |
tree | 58ed177368ceb2941cbe10f6cbf3552b59f7a20a | |
parent | 8c54c2934371214c1dcff24fb62af05f39070cae (diff) |
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 <[email protected]>
-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 fc1b2555e8..01d61597a8 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -2719,7 +2719,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]); |