aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-24 00:31:52 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-25 23:11:56 +0200
commit54e8dcce8e5fce245715aafe1768beb0b6aa49f5 (patch)
treeab46fc964340d8772caa0bca2a0b22db5e99ad8b
parent9348d06fc640289294f288f6a683bf86a32c8db1 (diff)
downloadffmpeg-54e8dcce8e5fce245715aafe1768beb0b6aa49f5.tar.gz
avformat/jacosubenc: Fix writing extradata
The terminating '\0' is no longer included in the size of the extradata output by the demuxer since commit 36e61e24e7ac737b38c4382d439329352d9e0c29. E.g. if one remuxes the JACOsub sample JACOsub_capability_tester.jss from the FATE suite, one receives a file not recognized as JACOsub before this patch. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavformat/jacosubenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/jacosubenc.c b/libavformat/jacosubenc.c
index 324f2957fb..f0548bb282 100644
--- a/libavformat/jacosubenc.c
+++ b/libavformat/jacosubenc.c
@@ -24,7 +24,7 @@ static int jacosub_write_header(AVFormatContext *s)
const AVCodecParameters *par = s->streams[0]->codecpar;
if (par->extradata_size) {
- avio_write(s->pb, par->extradata, par->extradata_size - 1);
+ avio_write(s->pb, par->extradata, par->extradata_size);
}
return 0;
}