diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-06 17:40:40 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-06 17:42:10 +0100 |
commit | e1ccc9216b5d2bfa0074c208aa5dfa2b05b5ad2a (patch) | |
tree | bf527fc7d65a93754fcca83f16292412dfa4ac86 /libavformat | |
parent | 7d90bc9f2ad0caa76d4eef8f85c8b6172c512ff6 (diff) | |
download | ffmpeg-e1ccc9216b5d2bfa0074c208aa5dfa2b05b5ad2a.tar.gz |
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@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 0 insertions, 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) |