changeset 32621:b6636da71bea

len < 8 is also invalid for 64-bit codec chunk size. Previous code could cause hang.
author reimar
date Sun, 12 Dec 2010 16:50:13 +0000
parents 231764e0b755
children 563e0a1369a0
files libmpdemux/demux_mov.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c	Sun Dec 12 14:31:17 2010 +0000
+++ b/libmpdemux/demux_mov.c	Sun Dec 12 16:50:13 2010 +0000
@@ -368,7 +368,7 @@
 	    goto skip_chunk;
 	}
 #endif
-	else if(len<8) break; // invalid chunk
+	if(len<8) break; // invalid chunk
 
 	switch(id){
 	case MOV_FOURCC('f','t','y','p'): {