]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vp5.c
Fix dependency: generated table is needed to create the mpegaudiodec.o file, not...
[ffmpeg] / libavcodec / vp5.c
index e47db0d2c1fb2d6e533598fce56adc8c767075ff..1f8434c731db408356f4189dda3e34f47dca1d03 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * @file vp5.c
+ * @file libavcodec/vp5.c
  * VP5 compatible video decoder
  *
  * Copyright (C) 2006  Aurelien Jacobs <aurel@gnuage.org>
@@ -26,7 +26,7 @@
 
 #include "avcodec.h"
 #include "dsputil.h"
-#include "bitstream.h"
+#include "get_bits.h"
 
 #include "vp56.h"
 #include "vp56data.h"
@@ -64,7 +64,8 @@ static int vp5_parse_header(VP56Context *s, const uint8_t *buf, int buf_size,
             avcodec_set_dimensions(s->avctx, 16*cols, 16*rows);
             return 2;
         }
-    }
+    } else if (!s->macroblocks)
+        return 0;
     return 1;
 }