Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2009-03-21 22:19:09 +0300
committerRonald S. Bultje <rsbultje@gmail.com>2009-03-21 22:19:09 +0300
commit83c0ba3dad814157f09fe5b7363623292d5d861f (patch)
treeb762e580f5dd50a9c77dd93efb53b70db73a2fd4 /libavformat
parente75e603c1a5d1b56b6297d2cbc1f32e6bf7b2b15 (diff)
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;