Browse Source

avcodec/dvdsub_parser: Init output buf/size

No testcase

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 9e6c843776)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.3.8
Michael Niedermayer 6 years ago
parent
commit
db85ff3578
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/dvdsub_parser.c

+ 3
- 0
libavcodec/dvdsub_parser.c View File

@@ -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…
Cancel
Save