[FFmpeg-cvslog] h264dec: use a large enough field for reference list modification values

Anton Khirnov git at videolan.org
Sat Nov 11 06:07:25 EET 2017


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Aug 17 12:15:58 2017 +0200| [f70f71d60c7ae88c19078a48dc6e0789b78c7300] | committer: Anton Khirnov

h264dec: use a large enough field for reference list modification values

pic_num can be at most 17-bit, so uint8_t is not sufficient.

Found-By: Bradley Sepos <bradley at bradleysepos.com>
CC: libav-stable at libav.org

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

 libavcodec/h264dec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h
index ddfe224e93..cce5e198d9 100644
--- a/libavcodec/h264dec.h
+++ b/libavcodec/h264dec.h
@@ -268,7 +268,7 @@ typedef struct H264SliceContext {
                                          *   according to picture reordering in slice header */
     struct {
         uint8_t op;
-        uint8_t val;
+        uint32_t val;
     } ref_modifications[2][32];
     int nb_ref_modifications[2];
 



More information about the ffmpeg-cvslog mailing list