Commit 6360f3e7 authored by rbultje's avatar rbultje

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.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18118 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6f08ac38
...@@ -534,7 +534,7 @@ static int sync(AVFormatContext *s, int64_t *timestamp, int *flags, int *stream_ ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment