diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h
index ddfe224e93d27ce3bc750c13d27123ed4e0c1487..cce5e198d9ab6297b355b194d3202ba8e97fdd82 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];