Commit 99831bd3 authored by michaelni's avatar michaelni

db video chunk in avi files support (idea by Dmitry Poplavsky <dima at thekompany dot com>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1693 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d9d68452
......@@ -254,7 +254,8 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
n= (d[0] - '0') * 10 + (d[1] - '0');
if( d[0] >= '0' && d[0] <= '9'
&& d[1] >= '0' && d[1] <= '9'
&&((d[2] == 'd' && d[3] == 'c') || (d[2] == 'w' && d[3] == 'b'))
&&((d[2] == 'd' && d[3] == 'c') || (d[2] == 'w' && d[3] == 'b') || (d[2] == 'd' && d[3] == 'b') )
&& n < s->nb_streams
&& i + size <= avi->movi_end){
......
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