mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/dvdsub_parser: Init output buf/size
No testcase Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
8d21ab4d12
commit
9e6c843776
|
@ -44,6 +44,9 @@ static int dvdsub_parse(AVCodecParserContext *s,
|
|||
{
|
||||
DVDSubParseContext *pc = s->priv_data;
|
||||
|
||||
*poutbuf = buf;
|
||||
*poutbuf_size = buf_size;
|
||||
|
||||
if (pc->packet_index == 0) {
|
||||
if (buf_size < 2 || AV_RB16(buf) && buf_size < 6) {
|
||||
if (buf_size)
|
||||
|
|
Loading…
Reference in New Issue