mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avformat/jacosubenc: Fix writing extradata
The terminating '\0' is no longer included in the size of
the extradata output by the demuxer since commit
36e61e24e7.
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>
This commit is contained in:
parent
9348d06fc6
commit
54e8dcce8e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue