[FFmpeg-devel] [PATCH 4/7] dnxhddec: use unsafe bitstream reader

Christophe Gisquet christophe.gisquet at gmail.com
Sun Sep 27 10:09:05 CEST 2015


Each line is padded by the format, and errors are now reported and
stop the decoding. Around 5% speedup.
---
 libavcodec/dnxhddec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c
index 8d30446..06d4780 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"
-- 
2.5.2



More information about the ffmpeg-devel mailing list