[FFmpeg-cvslog] r18118 - trunk/libavformat/rmdec.c
rbultje
subversion
Sat Mar 21 20:19:10 CET 2009
Author: rbultje
Date: Sat Mar 21 20:19:09 2009
New Revision: 18118
Log:
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.
Modified:
trunk/libavformat/rmdec.c
Modified: trunk/libavformat/rmdec.c
==============================================================================
--- trunk/libavformat/rmdec.c Sat Mar 21 20:18:07 2009 (r18117)
+++ trunk/libavformat/rmdec.c Sat Mar 21 20:19:09 2009 (r18118)
@@ -534,7 +534,7 @@ static int sync(AVFormatContext *s, int6
goto skip;
}
- if(state > (unsigned)0xFFFF || state < 12)
+ if(state > (unsigned)0xFFFF || state <= 12)
continue;
len=state - 12;
state= 0xFFFFFFFF;
More information about the ffmpeg-cvslog
mailing list