[Ffmpeg-cvslog] r7216 - trunk/libavformat/westwood.c

kostya subversion
Sun Dec 3 06:29:01 CET 2006


Author: kostya
Date: Sun Dec  3 06:29:00 2006
New Revision: 7216

Modified:
   trunk/libavformat/westwood.c

Log:
Some VQA v1 files don't have audio stream

Modified: trunk/libavformat/westwood.c
==============================================================================
--- trunk/libavformat/westwood.c	(original)
+++ trunk/libavformat/westwood.c	Sun Dec  3 06:29:00 2006
@@ -249,7 +249,7 @@
     st->codec->time_base.den = VQA_FRAMERATE;
 
     /* initialize the audio decoder stream for VQA v1 or nonzero samplerate */
-    if (LE_16(&header[24]) || (LE_16(&header[0]) == 1)) {
+    if (LE_16(&header[24]) || (LE_16(&header[0]) == 1 && LE_16(&header[2]) == 1)) {
         st = av_new_stream(s, 0);
         if (!st)
             return AVERROR_NOMEM;




More information about the ffmpeg-cvslog mailing list