avcodec/dvdsub_parser: Init output buf/size
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 13 Jul 2018 16:54:48 +0000 (18:54 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 17 Jul 2018 09:46:33 +0000 (11:46 +0200)
No testcase

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 9e6c8437761661441d836876934314cb2b8fafe7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dvdsub_parser.c

index 32a945e..8e1c48b 100644 (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)