Browse Source

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
tags/v0.6
Ronald S. Bultje 16 years ago
parent
commit
83c0ba3dad
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/rmdec.c

+ 1
- 1
libavformat/rmdec.c View File

@@ -534,7 +534,7 @@ static int sync(AVFormatContext *s, int64_t *timestamp, int *flags, int *stream_
goto skip; goto skip;
} }


if(state > (unsigned)0xFFFF || state < 12)
if(state > (unsigned)0xFFFF || state <= 12)
continue; continue;
len=state - 12; len=state - 12;
state= 0xFFFFFFFF; state= 0xFFFFFFFF;


Loading…
Cancel
Save