diff --git a/libavformat/riff.c b/libavformat/riff.c index 352bb561e9..ac1a4ff368 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);