dnxhddec: use unsafe bitstream reader
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Sun, 27 Sep 2015 08:09:05 +0000 (10:09 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 27 Sep 2015 23:00:58 +0000 (01:00 +0200)
Each line is padded by the format, and errors are now reported and
stop the decoding. Around 5% speedup.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dnxhddec.c

index 8d30446..06d4780 100644 (file)
@@ -26,6 +26,7 @@
 #include "libavutil/timer.h"
 #include "avcodec.h"
 #include "blockdsp.h"
+#define  UNCHECKED_BITSTREAM_READER 1
 #include "get_bits.h"
 #include "dnxhddata.h"
 #include "idctdsp.h"