mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/matroskaenc: fix Voids with size < 10
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
390eea61be
commit
c9ae8be5a8
|
@ -280,7 +280,7 @@ static void put_ebml_void(AVIOContext *pb, uint64_t size)
|
||||||
// size we need to reserve so 2 cases, we use 8 bytes to store the
|
// size we need to reserve so 2 cases, we use 8 bytes to store the
|
||||||
// size if possible, 1 byte otherwise
|
// size if possible, 1 byte otherwise
|
||||||
if (size < 10)
|
if (size < 10)
|
||||||
put_ebml_num(pb, size - 1, 0);
|
put_ebml_num(pb, size - 2, 0);
|
||||||
else
|
else
|
||||||
put_ebml_num(pb, size - 9, 8);
|
put_ebml_num(pb, size - 9, 8);
|
||||||
ffio_fill(pb, 0, currentpos + size - avio_tell(pb));
|
ffio_fill(pb, 0, currentpos + size - avio_tell(pb));
|
||||||
|
|
Loading…
Reference in New Issue