aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-18 03:19:40 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-18 03:19:40 +0100
commit8e7776036b11bf54bc8668eda3db1852f92a37fa (patch)
tree8726bb4d97a66682d17e11e4b7bc44def9974b80
parent38331d2036c3bd1b8f070b1fe351bb4fbfac0c34 (diff)
downloadffmpeg-8e7776036b11bf54bc8668eda3db1852f92a37fa.tar.gz
h263: disable slow checked reader, overreads are not possible in
ffmpegs h263 decoder Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/h263dec.c2
-rw-r--r--libavcodec/ituh263dec.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 0d741d80c2..fcb62732b5 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -25,6 +25,8 @@
* H.263 decoder.
*/
+#define UNCHECKED_BITSTREAM_READER 1
+
#include "libavutil/cpu.h"
#include "internal.h"
#include "avcodec.h"
diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c
index bf03e1a1d6..f058c9b848 100644
--- a/libavcodec/ituh263dec.c
+++ b/libavcodec/ituh263dec.c
@@ -27,6 +27,8 @@
* h263 decoder.
*/
+#define UNCHECKED_BITSTREAM_READER 1
+
//#define DEBUG
#include <limits.h>