[FFmpeg-cvslog] ff_end_tag: assert that the start is aligned.
Michael Niedermayer
git at videolan.org
Fri Feb 8 14:16:32 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Feb 8 12:51:52 2013 +0100| [47335126c049a5d2468b1b8b328c286a0d978159] | committer: Michael Niedermayer
ff_end_tag: assert that the start is aligned.
If its start is not aligned then aligning its end will
likely break many demuxers as they check the size and not
the position.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=47335126c049a5d2468b1b8b328c286a0d978159
---
libavformat/riff.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 352bb56..ac1a4ff 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -427,6 +427,8 @@ void ff_end_tag(AVIOContext *pb, int64_t start)
{
int64_t pos;
+ av_assert0((start&1) == 0);
+
pos = avio_tell(pb);
if (pos & 1)
avio_w8(pb, 0);
More information about the ffmpeg-cvslog
mailing list