[FFmpeg-devel] [PATCH] avcodec/h264: Declare the local variable decode_chroma as const.

Michael Niedermayer michael at niedermayer.cc
Fri Jul 21 01:20:25 EEST 2017


On Thu, Jul 20, 2017 at 10:31:19AM -0700, Wan-Teh Chang wrote:
> 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 at google.com>
> ---
>  libavcodec/h264_cabac.c | 4 ++--
>  libavcodec/h264_cavlc.c | 4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)

applied

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170721/683b7c34/attachment.sig>


More information about the ffmpeg-devel mailing list