[FFmpeg-cvslog] avcodec/dvdsub_parser: Init output buf/size

Michael Niedermayer git at videolan.org
Mon Jul 16 20:04:14 EEST 2018


ffmpeg | branch: release/4.0 | Michael Niedermayer <michael at niedermayer.cc> | Fri Jul 13 18:54:48 2018 +0200| [40ed40902ade1fa6294e12d853cf06f30f85b8cb] | committer: Michael Niedermayer

avcodec/dvdsub_parser: Init output buf/size

No testcase

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=40ed40902ade1fa6294e12d853cf06f30f85b8cb
---

 libavcodec/dvdsub_parser.c | 3 +++
 1 file changed, 3 insertions(+)

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)



More information about the ffmpeg-cvslog mailing list