]> git.sesse.net Git - ffmpeg/commit
all: fix enum definition for large values
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 23 Oct 2015 18:29:35 +0000 (14:29 -0400)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 30 Oct 2015 19:06:19 +0000 (15:06 -0400)
commit47af5db721ed5ba70387e28cc4664e3fcb2b3356
tree96508a2c1b9e1e563add7708bef072d4d5b4972b
parent191f611906c27f7b1a04955abf0b6f7b7e34a3c7
all: fix enum definition for large values

ISO C restricts enumerator values to the range of int. Thus (for instance) 0x80000000
unfortunately does not work, and throws a warning with -Wpedantic on
clang 3.7.

This fixes it by using alternative expressions that result in identical
values but do not have this issue.

Tested with FATE.

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavcodec/dca_syncwords.h
libavformat/cinedec.c
libavformat/mov_chan.c