summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/stream.c b/libhb/stream.c
index a4d7d2355..b3f8d3076 100644
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -5542,7 +5542,7 @@ static void add_ffmpeg_subtitle( hb_title_t *title, hb_stream_t *stream, int id
memcpy(subtitle->extradata,
codecpar->extradata, codecpar->extradata_size);
subtitle->extradata[codecpar->extradata_size] = 0;
- subtitle->extradata_size = codecpar->extradata_size;
+ subtitle->extradata_size = codecpar->extradata_size + 1;
}
if (st->disposition & AV_DISPOSITION_DEFAULT)