aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-18 03:20:41 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-18 03:23:28 +0100
commit06192e42fd925a2b1c1850a112038180479ddac4 (patch)
tree2f027c1c00b5a40e330a625ca08c1df35a9f72b6
parent8e7776036b11bf54bc8668eda3db1852f92a37fa (diff)
downloadffmpeg-06192e42fd925a2b1c1850a112038180479ddac4.tar.gz
mpeg4: disable checked bitstream reader, overreads are not possible.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/mpeg4video_parser.c2
-rw-r--r--libavcodec/mpeg4videodec.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mpeg4video_parser.c b/libavcodec/mpeg4video_parser.c
index c331435cc1..5f3b19d5aa 100644
--- a/libavcodec/mpeg4video_parser.c
+++ b/libavcodec/mpeg4video_parser.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#define UNCHECKED_BITSTREAM_READER 1
+
#include "parser.h"
#include "mpegvideo.h"
#include "mpeg4video.h"
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index e620f75687..de5e862827 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#define UNCHECKED_BITSTREAM_READER 1
+
#include "libavutil/opt.h"
#include "mpegvideo.h"
#include "mpeg4video.h"