avcodec/h264: Declare the local variable decode_chroma as const.
authorWan-Teh Chang <wtc-at-google.com@ffmpeg.org>
Thu, 20 Jul 2017 17:31:19 +0000 (10:31 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 21 Jul 2017 00:08:33 +0000 (02:08 +0200)
commit99c5ac20397ec1814d6a50bed74cadd421ad8b9d
tree45889108ba3640e0cc9c24a2b73c30b628ee6b4d
parentb77e26b28525f366c5f978214b230a5324bedf81
avcodec/h264: Declare the local variable decode_chroma as const.

ff_h264_decode_mb_cabac() and ff_h264_decode_mb_cavlc() are very long
functions. Declaring decode_chroma as const makes it clear the variable
doesn't change after initialization.

Signed-off-by: Wan-Teh Chang <wtc@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_cabac.c
libavcodec/h264_cavlc.c