mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 11:49:48 +00:00
mov: increase total_size only when it actually increases.
This is just cosmetic as the if() is always true. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
15130b94fc
commit
f0d0ae3b1e
@ -314,10 +314,10 @@ static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
if (atom.size >= 8) {
|
||||
a.size = avio_rb32(pb);
|
||||
a.type = avio_rl32(pb);
|
||||
total_size += 8;
|
||||
}
|
||||
av_dlog(c->fc, "type: %08x '%.4s' parent:'%.4s' sz: %"PRId64" %"PRId64" %"PRId64"\n",
|
||||
a.type, (char*)&a.type, (char*)&atom.type, a.size, total_size, atom.size);
|
||||
total_size += 8;
|
||||
if (a.size == 1) { /* 64 bit extended size */
|
||||
a.size = avio_rb64(pb) - 8;
|
||||
total_size += 8;
|
||||
|
Loading…
Reference in New Issue
Block a user