aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2009-03-21 19:19:09 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2009-03-21 19:19:09 +0000
commit83c0ba3dad814157f09fe5b7363623292d5d861f (patch)
treeb762e580f5dd50a9c77dd93efb53b70db73a2fd4 /libavformat
parente75e603c1a5d1b56b6297d2cbc1f32e6bf7b2b15 (diff)
downloadffmpeg-83c0ba3dad814157f09fe5b7363623292d5d861f.tar.gz
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
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rmdec.c2
1 files changed, 1 insertions, 1 deletions
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;