mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
Merge commit '5b4eb243bce10a3e8345401a353749e0414c54ca'
* commit '5b4eb243bce10a3e8345401a353749e0414c54ca':
mov: Seek back if overreading an individual atom
Conflicts:
libavformat/mov.c
See: 6093960ae3
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
38b701a349
@ -2956,8 +2956,10 @@ static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
left = a.size - avio_tell(pb) + start_pos;
|
||||
if (left > 0) /* skip garbage at atom end */
|
||||
avio_skip(pb, left);
|
||||
else if(left < 0) {
|
||||
av_log(c->fc, AV_LOG_DEBUG, "undoing overread of %"PRId64" in '%.4s'\n", -left, (char*)&a.type);
|
||||
else if (left < 0) {
|
||||
av_log(c->fc, AV_LOG_WARNING,
|
||||
"overread end of atom '%.4s' by %"PRId64" bytes\n",
|
||||
(char*)&a.type, -left);
|
||||
avio_seek(pb, left, SEEK_CUR);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user