summaryrefslogtreecommitdiff
path: root/libavcodec/dnxhddec.c
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2015-09-27 10:09:05 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-09-28 01:00:58 +0200
commit235381e674bf0921cbb7871946e2ff08bd84d6ba (patch)
treef0e20a655a8511fcbf9683b9b00d5837b4d5087f /libavcodec/dnxhddec.c
parentfd44892073cc9a5737ee230b0528aba3d555378c (diff)
dnxhddec: use unsafe bitstream reader
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>
Diffstat (limited to 'libavcodec/dnxhddec.c')
-rw-r--r--libavcodec/dnxhddec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c
index 8d30446f78..06d4780a5b 100644
--- a/libavcodec/dnxhddec.c
+++ b/libavcodec/dnxhddec.c
@@ -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"