From 83c0ba3dad814157f09fe5b7363623292d5d861f Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 21 Mar 2009 19:19:09 +0000 Subject: 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. Originally committed as revision 18118 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rmdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index deccd3b0e7..ebd7fd247d 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -534,7 +534,7 @@ static int sync(AVFormatContext *s, int64_t *timestamp, int *flags, int *stream_ goto skip; } - if(state > (unsigned)0xFFFF || state < 12) + if(state > (unsigned)0xFFFF || state <= 12) continue; len=state - 12; state= 0xFFFFFFFF; -- cgit v1.2.3