[FFmpeg-cvslog] mov: increase total_size only when it actually increases.
Michael Niedermayer
git at videolan.org
Tue Dec 6 17:49:50 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 6 17:21:05 2011 +0100| [f0d0ae3b1e0334b70286b3e27eb8a2ffa928a9e5] | committer: Michael Niedermayer
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 at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f0d0ae3b1e0334b70286b3e27eb8a2ffa928a9e5
---
libavformat/mov.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index d55b08d..eb31592 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list