mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 21:40:34 +00:00
avcodec: fix uninitialized variable read
This cna happen if the user tries to call the new decode API for subtitles. Fixes CID 1402071.
This commit is contained in:
parent
1cd58e9154
commit
b4b8ca24f6
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user