[FFmpeg-cvslog] avformat/matroskaenc: fix Voids with size < 10
Michael Bradshaw
git at videolan.org
Sun Jul 31 19:34:30 EEST 2016
ffmpeg | branch: master | Michael Bradshaw <mjbshaw at google.com> | Tue Jul 26 10:18:43 2016 -0700| [c9ae8be5a87ce6fc6cd3ddc5ac590c0245dc8928] | committer: Michael Niedermayer
avformat/matroskaenc: fix Voids with size < 10
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c9ae8be5a87ce6fc6cd3ddc5ac590c0245dc8928
---
libavformat/matroskaenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index f8dfa1c..2a2877f 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -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 if possible, 1 byte otherwise
if (size < 10)
- put_ebml_num(pb, size - 1, 0);
+ put_ebml_num(pb, size - 2, 0);
else
put_ebml_num(pb, size - 9, 8);
ffio_fill(pb, 0, currentpos + size - avio_tell(pb));
More information about the ffmpeg-cvslog
mailing list