mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-12-03 16:51:18 +00:00
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@gmx.at>
This commit is contained in:
parent
810cd0dd9c
commit
47335126c0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user