matroskadec: fail cleanly when the required compression lib is not compiled in
authorAurelien Jacobs <aurel@gnuage.org>
Wed, 20 Aug 2008 23:08:07 +0000 (23:08 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Wed, 20 Aug 2008 23:08:07 +0000 (23:08 +0000)
Originally committed as revision 14870 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/matroskadec.c

index 1eb6d58..8839654 100644 (file)
@@ -919,6 +919,8 @@ static int matroska_decode_buffer(uint8_t** buf, int* buf_size,
         break;
     }
 #endif
+    default:
+        return -1;
     }
 
     *buf = pkt_data;