aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-07-13 18:54:48 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2018-07-16 19:16:13 +0200
commitdb85ff35788dfbe3f1570e71640c99f7c24579f0 (patch)
treea9fc25957a1af1eacf1f65f7d7403a854ffea42d
parent28e0e494ee6499e7c37255e54453d791ff79ae54 (diff)
downloadffmpeg-db85ff35788dfbe3f1570e71640c99f7c24579f0.tar.gz
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>
-rw-r--r--libavcodec/dvdsub_parser.c3
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)