diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index bec8c7704048064bc6dd4ef9b94db96ca9316f45..1168efc1e46cbd1b85a5fa6b194a024167b02df1 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){