From e1ccc9216b5d2bfa0074c208aa5dfa2b05b5ad2a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 6 Dec 2011 17:40:40 +0100 Subject: [PATCH] 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 --- libavformat/mov.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 335ee23bed..0bb7362179 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)