Browse code

avcodec/dvdsub_parser: Init output buf/size

No testcase

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

Michael Niedermayer authored on 2018/07/14 01:54:48
Showing 1 changed files
... ...
@@ -44,6 +44,9 @@ static int dvdsub_parse(AVCodecParserContext *s,
44 44
 {
45 45
     DVDSubParseContext *pc = s->priv_data;
46 46
 
47
+    *poutbuf      = buf;
48
+    *poutbuf_size = buf_size;
49
+
47 50
     if (pc->packet_index == 0) {
48 51
         if (buf_size < 2 || AV_RB16(buf) && buf_size < 6) {
49 52
             if (buf_size)