changeset 4769:6fff7e0861fc libavformat

Don't allow to sync on packets of zero-size length, since these are never valid. See "[PATCH] rmdec.c: prevent zero-length packets" thread.
author rbultje
date Sat, 21 Mar 2009 19:19:09 +0000
parents 667428b99cc3
children 7875964b4a58
files rmdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rmdec.c	Sat Mar 21 19:18:07 2009 +0000
+++ b/rmdec.c	Sat Mar 21 19:19:09 2009 +0000
@@ -534,7 +534,7 @@
                 goto skip;
             }
 
-            if(state > (unsigned)0xFFFF || state < 12)
+            if(state > (unsigned)0xFFFF || state <= 12)
                 continue;
             len=state - 12;
             state= 0xFFFFFFFF;