[FFmpeg-cvslog] movdec: remove redundant size<=8 check.

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:40:40 2011 +0100| [e1ccc9216b5d2bfa0074c208aa5dfa2b05b5ad2a] | committer: Michael Niedermayer

movdec: remove redundant size<=8 check.
Its checked a few lines below too.
The only difference is that empty atoms with size=0 will now get parsed too.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e1ccc9216b5d2bfa0074c208aa5dfa2b05b5ad2a
---

 libavformat/mov.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 335ee23..0bb7362 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -324,8 +324,6 @@ static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom)
                 a.type, (char*)&a.type, (char*)&atom.type, a.size, total_size, atom.size);
         if (a.size == 0) {
             a.size = atom.size - total_size + 8;
-            if (a.size <= 8)
-                break;
         }
         a.size -= 8;
         if (a.size < 0)



More information about the ffmpeg-cvslog mailing list