aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-03-20 01:04:33 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-03-20 01:04:33 +0000
commit57d03758491d5bdd40a096e0930bf4d0c154485c (patch)
tree761cd6e38cb74f7d01df0f83c98079df5458d136
parent46b4feec06035d3507db257eecc762d66e0dd7b6 (diff)
downloadffmpeg-57d03758491d5bdd40a096e0930bf4d0c154485c.tar.gz
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
-rw-r--r--libavformat/avidec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index bec8c77040..1168efc1e4 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -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){