Skip to content
Snippets Groups Projects
Commit 9e6c8437 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/dvdsub_parser: Init output buf/size


No testcase

Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 8d21ab4d
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
  • Auri @aurieh

    mentioned in commit 40ed4090

    ·

    mentioned in commit 40ed4090

    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment