diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 6f81650c550304af2ce492834be8091911807546..1ea90f18896f7ed7a4f626e543e4ea6e4bca5953 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2421,7 +2421,6 @@ static av_always_inline void hl_decode_mb_internal(H264Context *h, int simple){
     int linesize, uvlinesize /*dct_offset*/;
     int i;
     int *block_offset = &h->block_offset[0];
-    const unsigned int bottom = mb_y & 1;
     const int transform_bypass = (s->qscale == 0 && h->sps.transform_bypass), is_h264 = (simple || s->codec_id == CODEC_ID_H264);
     void (*idct_add)(uint8_t *dst, DCTELEM *block, int stride);
     void (*idct_dc_add)(uint8_t *dst, DCTELEM *block, int stride);