mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-05-04 17:18:03 +00:00
db video chunk in avi files support (idea by Dmitry Poplavsky <dima at thekompany dot com>)
Originally committed as revision 1693 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
46b4feec06
commit
57d0375849
@ -254,7 +254,8 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
n= (d[0] - '0') * 10 + (d[1] - '0');
|
n= (d[0] - '0') * 10 + (d[1] - '0');
|
||||||
if( d[0] >= '0' && d[0] <= '9'
|
if( d[0] >= '0' && d[0] <= '9'
|
||||||
&& d[1] >= '0' && d[1] <= '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
|
&& n < s->nb_streams
|
||||||
&& i + size <= avi->movi_end){
|
&& i + size <= avi->movi_end){
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user