diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-07-13 18:54:48 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-07-15 19:42:25 +0200 |
commit | 9e6c8437761661441d836876934314cb2b8fafe7 (patch) | |
tree | ae29e46940fc557d552035c0e947ea23953c2214 /libavcodec/dvdsub_parser.c | |
parent | 8d21ab4d128ddae03fe6b21542c29dee240151db (diff) | |
download | ffmpeg-9e6c8437761661441d836876934314cb2b8fafe7.tar.gz |
avcodec/dvdsub_parser: Init output buf/size
No testcase
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/dvdsub_parser.c')
-rw-r--r-- | libavcodec/dvdsub_parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/dvdsub_parser.c b/libavcodec/dvdsub_parser.c index 32a945ed65..8e1c48bef6 100644 --- a/libavcodec/dvdsub_parser.c +++ b/libavcodec/dvdsub_parser.c @@ -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) |