[FFmpeg-cvslog] h264: disable checking reader, overreads are not possible

Michael Niedermayer git at videolan.org
Sun Dec 18 03:39:18 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Dec 18 03:17:44 2011 +0100| [38331d2036c3bd1b8f070b1fe351bb4fbfac0c34] | committer: Michael Niedermayer

h264: disable checking reader, overreads are not possible
in ffmpegs h264 decoder.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=38331d2036c3bd1b8f070b1fe351bb4fbfac0c34
---

 libavcodec/h264.c        |    2 ++
 libavcodec/h264_cabac.c  |    1 +
 libavcodec/h264_cavlc.c  |    1 +
 libavcodec/h264_parser.c |    2 ++
 4 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index efeadb6..d8820f2 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -25,6 +25,8 @@
  * @author Michael Niedermayer <michaelni at gmx.at>
  */
 
+#define UNCHECKED_BITSTREAM_READER 1
+
 #include "libavutil/imgutils.h"
 #include "libavutil/opt.h"
 #include "internal.h"
diff --git a/libavcodec/h264_cabac.c b/libavcodec/h264_cabac.c
index 6286c5f..0b33e30 100644
--- a/libavcodec/h264_cabac.c
+++ b/libavcodec/h264_cabac.c
@@ -26,6 +26,7 @@
  */
 
 #define CABAC 1
+#define UNCHECKED_BITSTREAM_READER 1
 
 #include "internal.h"
 #include "dsputil.h"
diff --git a/libavcodec/h264_cavlc.c b/libavcodec/h264_cavlc.c
index 738f84a..f9daeb2 100644
--- a/libavcodec/h264_cavlc.c
+++ b/libavcodec/h264_cavlc.c
@@ -26,6 +26,7 @@
  */
 
 #define CABAC 0
+#define UNCHECKED_BITSTREAM_READER 1
 
 #include "internal.h"
 #include "avcodec.h"
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
index ee766a1..9d28cc3 100644
--- a/libavcodec/h264_parser.c
+++ b/libavcodec/h264_parser.c
@@ -25,6 +25,8 @@
  * @author Michael Niedermayer <michaelni at gmx.at>
  */
 
+#define UNCHECKED_BITSTREAM_READER 1
+
 #include "parser.h"
 #include "h264data.h"
 #include "golomb.h"



More information about the ffmpeg-cvslog mailing list