[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1057579: mplayer: FTBFS: error: 'INT_MAX' undeclared (first use in this function)



Package: src:mplayer
Version: 2:1.5+svn38423-2
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_configure-arch
make[1]: Entering directory '/<<PKGBUILDDIR>>'
./configure --prefix=/usr --confdir=/etc/mplayer --enable-debug --enable-xvmc --enable-menu --disable-arts --language=all --disable-libmpeg2-internal --disable-ffmpeg_a --disable-esd --extra-cflags="-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2" --extra-ldflags="-Wl,-z,relro -Wl,-z,now"  --enable-runtime-cpudetection --enable-joystick --enable-radio --enable-radio-capture --enable-gui --enable-nls
Checking for ffmpeg/libavcodec/allcodecs.c ... not found
Checking for ffmpeg/libavcodec/hwaccels.h ... not found
Checking for ffmpeg/libavformat/allformats.c ... not found
Checking for ffmpeg/libavcodec/bitsteram_filters.c ... not found
Checking for ffmpeg/libavcodec/cbs_internal.h ... not found
Checking for ffmpeg/libavformat/protocols.c ... not found
Checking for ffmpeg/libavfilter/allfilters.c ... not found

[... snipped ...]

  766 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:845:13: note: in expansion of macro 'REORDER_SELF_SWAP_5_STEP_1'
  845 |             REORDER_SELF_SWAP_5_STEP_1(src_32,tmp,samples,8,s0,s1,s2,s3,s4);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:766:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  766 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:848:13: note: in expansion of macro 'REORDER_SELF_SWAP_5_STEP_1'
  848 |             REORDER_SELF_SWAP_5_STEP_1(src_32,tmp,samples,5,s0,s1,s2,s3,s4);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:766:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  766 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:857:13: note: in expansion of macro 'REORDER_SELF_SWAP_5_STEP_1'
  857 |             REORDER_SELF_SWAP_5_STEP_1(src_64,tmp,samples,6,s0,s1,s2,s3,s4);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:766:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  766 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:860:13: note: in expansion of macro 'REORDER_SELF_SWAP_5_STEP_1'
  860 |             REORDER_SELF_SWAP_5_STEP_1(src_64,tmp,samples,8,s0,s1,s2,s3,s4);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:766:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  766 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:863:13: note: in expansion of macro 'REORDER_SELF_SWAP_5_STEP_1'
  863 |             REORDER_SELF_SWAP_5_STEP_1(src_64,tmp,samples,5,s0,s1,s2,s3,s4);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c: In function 'reorder_self_2_3':
libaf/reorder_ch.c:877:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  877 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:897:9: note: in expansion of macro 'REORDER_SELF_SWAP_2_3'
  897 |         REORDER_SELF_SWAP_2_3(src_8,tmp,samples,6,s0,s1,s2,s3,s4);
      |         ^~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:877:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  877 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:904:9: note: in expansion of macro 'REORDER_SELF_SWAP_2_3'
  904 |         REORDER_SELF_SWAP_2_3(src_16,tmp,samples,6,s0,s1,s2,s3,s4);
      |         ^~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:911:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  911 |         for (i = 0; i < samples * 3; i += 18) {
      |                       ^
libaf/reorder_ch.c:877:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  877 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:940:9: note: in expansion of macro 'REORDER_SELF_SWAP_2_3'
  940 |         REORDER_SELF_SWAP_2_3(src_32,tmp,samples,6,s0,s1,s2,s3,s4);
      |         ^~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:877:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  877 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:947:9: note: in expansion of macro 'REORDER_SELF_SWAP_2_3'
  947 |         REORDER_SELF_SWAP_2_3(src_64,tmp,samples,6,s0,s1,s2,s3,s4);
      |         ^~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c: In function 'reorder_self_3_3':
libaf/reorder_ch.c:960:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  960 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:981:9: note: in expansion of macro 'REORDER_SELF_SWAP_3_3'
  981 |         REORDER_SELF_SWAP_3_3(src_8,tmp,samples,6,s0,s1,s2,s3,s4,s5);
      |         ^~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:960:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  960 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:988:9: note: in expansion of macro 'REORDER_SELF_SWAP_3_3'
  988 |         REORDER_SELF_SWAP_3_3(src_16,tmp,samples,6,s0,s1,s2,s3,s4,s5);
      |         ^~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:995:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  995 |         for (i = 0; i < samples * 3; i += 18) {
      |                       ^
libaf/reorder_ch.c:960:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  960 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:1027:9: note: in expansion of macro 'REORDER_SELF_SWAP_3_3'
 1027 |         REORDER_SELF_SWAP_3_3(src_32,tmp,samples,6,s0,s1,s2,s3,s4,s5);
      |         ^~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:960:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  960 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:1034:9: note: in expansion of macro 'REORDER_SELF_SWAP_3_3'
 1034 |         REORDER_SELF_SWAP_3_3(src_64,tmp,samples,6,s0,s1,s2,s3,s4,s5);
      |         ^~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c: In function 'reorder_self_2_4':
libaf/reorder_ch.c:1047:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
 1047 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:1069:13: note: in expansion of macro 'REORDER_SELF_SWAP_2_4'
 1069 |             REORDER_SELF_SWAP_2_4(src_8,tmp,samples,6,s0,s1,s2,s3,s4,s5);
      |             ^~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:1047:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
 1047 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:1071:13: note: in expansion of macro 'REORDER_SELF_SWAP_2_4'
 1071 |             REORDER_SELF_SWAP_2_4(src_8,tmp,samples,8,s0,s1,s2,s3,s4,s5);
      |             ^~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:1047:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
 1047 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:1080:13: note: in expansion of macro 'REORDER_SELF_SWAP_2_4'
 1080 |             REORDER_SELF_SWAP_2_4(src_16,tmp,samples,6,s0,s1,s2,s3,s4,s5);
      |             ^~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:1047:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
 1047 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:1082:13: note: in expansion of macro 'REORDER_SELF_SWAP_2_4'
 1082 |             REORDER_SELF_SWAP_2_4(src_16,tmp,samples,8,s0,s1,s2,s3,s4,s5);
      |             ^~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:1090:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
 1090 |         for (i = 0; i < samples * 3; i += chnum * 3) {
      |                       ^
libaf/reorder_ch.c:1047:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
 1047 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:1123:13: note: in expansion of macro 'REORDER_SELF_SWAP_2_4'
 1123 |             REORDER_SELF_SWAP_2_4(src_32,tmp,samples,6,s0,s1,s2,s3,s4,s5);
      |             ^~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:1047:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
 1047 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:1125:13: note: in expansion of macro 'REORDER_SELF_SWAP_2_4'
 1125 |             REORDER_SELF_SWAP_2_4(src_32,tmp,samples,8,s0,s1,s2,s3,s4,s5);
      |             ^~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:1047:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
 1047 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:1134:13: note: in expansion of macro 'REORDER_SELF_SWAP_2_4'
 1134 |             REORDER_SELF_SWAP_2_4(src_64,tmp,samples,6,s0,s1,s2,s3,s4,s5);
      |             ^~~~~~~~~~~~~~~~~~~~~
libaf/reorder_ch.c:1047:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
 1047 | for (i = 0; i < SAMPLES; i += CHNUM) {\
      |               ^
libaf/reorder_ch.c:1136:13: note: in expansion of macro 'REORDER_SELF_SWAP_2_4'
 1136 |             REORDER_SELF_SWAP_2_4(src_64,tmp,samples,8,s0,s1,s2,s3,s4,s5);
      |             ^~~~~~~~~~~~~~~~~~~~~
cc -MMD -MP -Wundef -W -Wall -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O2 -march=x86-64 -mtune=generic -pipe -g -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fpie -DPIC -D_REENTRANT -I/usr/include/p11-kit-1 -I/usr/include/samba-4.0 -I/usr/include/ -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DZLIB_CONST -I/usr/include/bs2b -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/atk-1.0 -pthread -c -o libmpcodecs/ad.o libmpcodecs/ad.c
In file included from libmpcodecs/ad.c:28:
./libmpdemux/demuxer.h: In function 'new_demux_packet':
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:292:11: note: in expansion of macro 'MP_NOPTS_VALUE'
  292 |   dp->pts=MP_NOPTS_VALUE;
      |           ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:293:14: note: in expansion of macro 'MP_NOPTS_VALUE'
  293 |   dp->endpts=MP_NOPTS_VALUE;
      |              ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:294:20: note: in expansion of macro 'MP_NOPTS_VALUE'
  294 |   dp->stream_pts = MP_NOPTS_VALUE;
      |                    ^~~~~~~~~~~~~~
cc -MMD -MP -Wundef -W -Wall -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O2 -march=x86-64 -mtune=generic -pipe -g -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fpie -DPIC -D_REENTRANT -I/usr/include/p11-kit-1 -I/usr/include/samba-4.0 -I/usr/include/ -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DZLIB_CONST -I/usr/include/bs2b -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/atk-1.0 -pthread -c -o libmpcodecs/ad_alaw.o libmpcodecs/ad_alaw.c
In file included from libmpcodecs/ad_internal.h:26,
                 from libmpcodecs/ad_alaw.c:24:
./libmpdemux/demuxer.h: In function 'new_demux_packet':
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:292:11: note: in expansion of macro 'MP_NOPTS_VALUE'
  292 |   dp->pts=MP_NOPTS_VALUE;
      |           ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:293:14: note: in expansion of macro 'MP_NOPTS_VALUE'
  293 |   dp->endpts=MP_NOPTS_VALUE;
      |              ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:294:20: note: in expansion of macro 'MP_NOPTS_VALUE'
  294 |   dp->stream_pts = MP_NOPTS_VALUE;
      |                    ^~~~~~~~~~~~~~
libmpcodecs/ad_alaw.c: In function 'uninit':
libmpcodecs/ad_alaw.c:58:32: warning: unused parameter 'sh' [-Wunused-parameter]
   58 | static void uninit(sh_audio_t *sh)
      |                    ~~~~~~~~~~~~^~
libmpcodecs/ad_alaw.c: In function 'control':
libmpcodecs/ad_alaw.c:62:49: warning: unused parameter 'arg' [-Wunused-parameter]
   62 | static int control(sh_audio_t *sh,int cmd,void* arg, ...)
      |                                           ~~~~~~^~~
libmpcodecs/ad_alaw.c: In function 'decode_audio':
libmpcodecs/ad_alaw.c:78:80: warning: unused parameter 'maxlen' [-Wunused-parameter]
   78 | static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int maxlen)
      |                                                                            ~~~~^~~~~~
cc -MMD -MP -Wundef -W -Wall -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O2 -march=x86-64 -mtune=generic -pipe -g -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fpie -DPIC -D_REENTRANT -I/usr/include/p11-kit-1 -I/usr/include/samba-4.0 -I/usr/include/ -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DZLIB_CONST -I/usr/include/bs2b -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/atk-1.0 -pthread -c -o libmpcodecs/ad_dvdpcm.o libmpcodecs/ad_dvdpcm.c
In file included from libmpcodecs/ad_internal.h:26,
                 from libmpcodecs/ad_dvdpcm.c:26:
./libmpdemux/demuxer.h: In function 'new_demux_packet':
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:292:11: note: in expansion of macro 'MP_NOPTS_VALUE'
  292 |   dp->pts=MP_NOPTS_VALUE;
      |           ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:293:14: note: in expansion of macro 'MP_NOPTS_VALUE'
  293 |   dp->endpts=MP_NOPTS_VALUE;
      |              ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:294:20: note: in expansion of macro 'MP_NOPTS_VALUE'
  294 |   dp->stream_pts = MP_NOPTS_VALUE;
      |                    ^~~~~~~~~~~~~~
libmpcodecs/ad_dvdpcm.c: In function 'uninit':
libmpcodecs/ad_dvdpcm.c:86:32: warning: unused parameter 'sh' [-Wunused-parameter]
   86 | static void uninit(sh_audio_t *sh)
      |                    ~~~~~~~~~~~~^~
libmpcodecs/ad_dvdpcm.c: In function 'control':
libmpcodecs/ad_dvdpcm.c:90:49: warning: unused parameter 'arg' [-Wunused-parameter]
   90 | static int control(sh_audio_t *sh,int cmd,void* arg, ...)
      |                                           ~~~~~~^~~
libmpcodecs/ad_dvdpcm.c: In function 'decode_audio':
libmpcodecs/ad_dvdpcm.c:104:80: warning: unused parameter 'maxlen' [-Wunused-parameter]
  104 | static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int maxlen)
      |                                                                            ~~~~^~~~~~
libmpcodecs/ad_dvdpcm.c: In function 'init':
libmpcodecs/ad_dvdpcm.c:61:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
   61 |             sh->i_bps = sh->channels * sh->samplerate * 5 / 2;
      |             ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libmpcodecs/ad_dvdpcm.c:63:11: note: here
   63 |           case 2:
      |           ^~~~
cc -MMD -MP -Wundef -W -Wall -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O2 -march=x86-64 -mtune=generic -pipe -g -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fpie -DPIC -D_REENTRANT -I/usr/include/p11-kit-1 -I/usr/include/samba-4.0 -I/usr/include/ -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DZLIB_CONST -I/usr/include/bs2b -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/atk-1.0 -pthread -c -o libmpcodecs/ad_hwac3.o libmpcodecs/ad_hwac3.c
In file included from libmpcodecs/ad_internal.h:26,
                 from libmpcodecs/ad_hwac3.c:34:
./libmpdemux/demuxer.h: In function 'new_demux_packet':
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:292:11: note: in expansion of macro 'MP_NOPTS_VALUE'
  292 |   dp->pts=MP_NOPTS_VALUE;
      |           ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:293:14: note: in expansion of macro 'MP_NOPTS_VALUE'
  293 |   dp->endpts=MP_NOPTS_VALUE;
      |              ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:294:20: note: in expansion of macro 'MP_NOPTS_VALUE'
  294 |   dp->stream_pts = MP_NOPTS_VALUE;
      |                    ^~~~~~~~~~~~~~
libmpcodecs/ad_hwac3.c: In function 'uninit':
libmpcodecs/ad_hwac3.c:185:32: warning: unused parameter 'sh' [-Wunused-parameter]
  185 | static void uninit(sh_audio_t *sh)
      |                    ~~~~~~~~~~~~^~
libmpcodecs/ad_hwac3.c: In function 'control':
libmpcodecs/ad_hwac3.c:189:49: warning: unused parameter 'arg' [-Wunused-parameter]
  189 | static int control(sh_audio_t *sh,int cmd,void* arg, ...)
      |                                           ~~~~~~^~~
libmpcodecs/ad_hwac3.c: In function 'decode_audio':
libmpcodecs/ad_hwac3.c:202:69: warning: unused parameter 'minlen' [-Wunused-parameter]
  202 | static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int maxlen)
      |                                                                 ~~~~^~~~~~
libmpcodecs/ad_hwac3.c: In function 'dts_syncinfo':
libmpcodecs/ad_hwac3.c:439:51: warning: unused parameter 'flags' [-Wunused-parameter]
  439 | static int dts_syncinfo(uint8_t *indata_ptr, int *flags, int *sample_rate, int *bit_rate)
      |                                              ~~~~~^~~~~
cc -MMD -MP -Wundef -W -Wall -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O2 -march=x86-64 -mtune=generic -pipe -g -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fpie -DPIC -D_REENTRANT -I/usr/include/p11-kit-1 -I/usr/include/samba-4.0 -I/usr/include/ -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DZLIB_CONST -I/usr/include/bs2b -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/atk-1.0 -pthread -c -o libmpcodecs/ad_hwmpa.o libmpcodecs/ad_hwmpa.c
In file included from libmpcodecs/ad_internal.h:26,
                 from libmpcodecs/ad_hwmpa.c:30:
./libmpdemux/demuxer.h: In function 'new_demux_packet':
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:292:11: note: in expansion of macro 'MP_NOPTS_VALUE'
  292 |   dp->pts=MP_NOPTS_VALUE;
      |           ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:293:14: note: in expansion of macro 'MP_NOPTS_VALUE'
  293 |   dp->endpts=MP_NOPTS_VALUE;
      |              ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:294:20: note: in expansion of macro 'MP_NOPTS_VALUE'
  294 |   dp->stream_pts = MP_NOPTS_VALUE;
      |                    ^~~~~~~~~~~~~~
libmpcodecs/ad_hwmpa.c: In function 'decode_audio':
libmpcodecs/ad_hwmpa.c:100:63: warning: unused parameter 'minlen' [-Wunused-parameter]
  100 | static int decode_audio(sh_audio_t *sh,unsigned char *buf,int minlen,int maxlen)
      |                                                           ~~~~^~~~~~
libmpcodecs/ad_hwmpa.c: In function 'control':
libmpcodecs/ad_hwmpa.c:142:49: warning: unused parameter 'arg' [-Wunused-parameter]
  142 | static int control(sh_audio_t *sh,int cmd,void* arg, ...)
      |                                           ~~~~~~^~~
libmpcodecs/ad_hwmpa.c: In function 'uninit':
libmpcodecs/ad_hwmpa.c:166:32: warning: unused parameter 'sh' [-Wunused-parameter]
  166 | static void uninit(sh_audio_t *sh)
      |                    ~~~~~~~~~~~~^~
cc -MMD -MP -Wundef -W -Wall -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O2 -march=x86-64 -mtune=generic -pipe -g -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fpie -DPIC -D_REENTRANT -I/usr/include/p11-kit-1 -I/usr/include/samba-4.0 -I/usr/include/ -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DZLIB_CONST -I/usr/include/bs2b -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/atk-1.0 -pthread -c -o libmpcodecs/ad_pcm.o libmpcodecs/ad_pcm.c
In file included from libmpcodecs/ad_internal.h:26,
                 from libmpcodecs/ad_pcm.c:24:
./libmpdemux/demuxer.h: In function 'new_demux_packet':
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:292:11: note: in expansion of macro 'MP_NOPTS_VALUE'
  292 |   dp->pts=MP_NOPTS_VALUE;
      |           ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:293:14: note: in expansion of macro 'MP_NOPTS_VALUE'
  293 |   dp->endpts=MP_NOPTS_VALUE;
      |              ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:294:20: note: in expansion of macro 'MP_NOPTS_VALUE'
  294 |   dp->stream_pts = MP_NOPTS_VALUE;
      |                    ^~~~~~~~~~~~~~
libmpcodecs/ad_pcm.c: In function 'uninit':
libmpcodecs/ad_pcm.c:128:32: warning: unused parameter 'sh' [-Wunused-parameter]
  128 | static void uninit(sh_audio_t *sh)
      |                    ~~~~~~~~~~~~^~
libmpcodecs/ad_pcm.c: In function 'control':
libmpcodecs/ad_pcm.c:132:51: warning: unused parameter 'arg' [-Wunused-parameter]
  132 | static int control(sh_audio_t *sh, int cmd, void *arg, ...)
      |                                             ~~~~~~^~~
libmpcodecs/ad_pcm.c: In function 'decode_audio':
libmpcodecs/ad_pcm.c:150:13: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
  150 |     if (len > maxlen)
      |             ^
libmpcodecs/ad_pcm.c: In function 'init':
libmpcodecs/ad_pcm.c:73:33: warning: this statement may fall through [-Wimplicit-fallthrough=]
   73 |         sh_audio->sample_format = AF_FORMAT_S16_BE;
libmpcodecs/ad_pcm.c:75:5: note: here
   75 |     case 0x74776F73: // 'sowt'
      |     ^~~~
cc -MMD -MP -Wundef -W -Wall -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O2 -march=x86-64 -mtune=generic -pipe -g -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fpie -DPIC -D_REENTRANT -I/usr/include/p11-kit-1 -I/usr/include/samba-4.0 -I/usr/include/ -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DZLIB_CONST -I/usr/include/bs2b -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/atk-1.0 -pthread -c -o libmpcodecs/dec_audio.o libmpcodecs/dec_audio.c
In file included from libmpcodecs/dec_audio.c:29:
./libmpdemux/demuxer.h: In function 'new_demux_packet':
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:292:11: note: in expansion of macro 'MP_NOPTS_VALUE'
  292 |   dp->pts=MP_NOPTS_VALUE;
      |           ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:293:14: note: in expansion of macro 'MP_NOPTS_VALUE'
  293 |   dp->endpts=MP_NOPTS_VALUE;
      |              ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:294:20: note: in expansion of macro 'MP_NOPTS_VALUE'
  294 |   dp->stream_pts = MP_NOPTS_VALUE;
      |                    ^~~~~~~~~~~~~~
cc -MMD -MP -Wundef -W -Wall -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O2 -march=x86-64 -mtune=generic -pipe -g -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fpie -DPIC -D_REENTRANT -I/usr/include/p11-kit-1 -I/usr/include/samba-4.0 -I/usr/include/ -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DZLIB_CONST -I/usr/include/bs2b -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/atk-1.0 -pthread -c -o libmpcodecs/dec_teletext.o libmpcodecs/dec_teletext.c
libmpcodecs/dec_teletext.c: In function 'decode_pkt30':
libmpcodecs/dec_teletext.c:1187:66: warning: unused parameter 'magAddr' [-Wunused-parameter]
 1187 | static int decode_pkt30(priv_vbi_t* priv,unsigned char* data,int magAddr)
      |                                                              ~~~~^~~~~~~
libmpcodecs/dec_teletext.c: In function 'vbi_decode_dvb':
libmpcodecs/dec_teletext.c:1575:19: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
 1575 |     for (i = 0; i < sizeof(data); i++)
      |                   ^
cc -MMD -MP -Wundef -W -Wall -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O2 -march=x86-64 -mtune=generic -pipe -g -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fpie -DPIC -D_REENTRANT -I/usr/include/p11-kit-1 -I/usr/include/samba-4.0 -I/usr/include/ -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DZLIB_CONST -I/usr/include/bs2b -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/atk-1.0 -pthread -c -o libmpcodecs/dec_video.o libmpcodecs/dec_video.c
In file included from ./mpcommon.h:25,
                 from libmpcodecs/dec_video.c:27:
./libmpdemux/demuxer.h: In function 'new_demux_packet':
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:292:11: note: in expansion of macro 'MP_NOPTS_VALUE'
  292 |   dp->pts=MP_NOPTS_VALUE;
      |           ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:293:14: note: in expansion of macro 'MP_NOPTS_VALUE'
  293 |   dp->endpts=MP_NOPTS_VALUE;
      |              ^~~~~~~~~~~~~~
./libmpdemux/demuxer.h:98:29: warning: left shift of negative value [-Wshift-negative-value]
   98 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
./libmpdemux/demuxer.h:294:20: note: in expansion of macro 'MP_NOPTS_VALUE'
  294 |   dp->stream_pts = MP_NOPTS_VALUE;
      |                    ^~~~~~~~~~~~~~
libmpcodecs/dec_video.c: In function 'set_video_colors':
libmpcodecs/dec_video.c:109:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  109 |                             (int *) value) == CONTROL_OK)
      |                             ^
libmpcodecs/dec_video.c:108:61: warning: passing argument 3 of 'mpvdec->control' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  108 |         if (mpvdec->control(sh_video, VDCTRL_SET_EQUALIZER, item,
      |                                                             ^~~~
libmpcodecs/dec_video.c:108:61: note: expected 'void *' but argument is of type 'const char *'
libmpcodecs/dec_video.c: In function 'get_video_colors':
libmpcodecs/dec_video.c:134:64: warning: passing argument 3 of 'mpvdec->control' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  134 |         return mpvdec->control(sh_video, VDCTRL_GET_EQUALIZER, item, value);
      |                                                                ^~~~
libmpcodecs/dec_video.c:134:64: note: expected 'void *' but argument is of type 'const char *'
In file included from libmpcodecs/vf.h:118,
                 from libmpcodecs/dec_video.c:42:
libmpcodecs/dec_video.c: In function 'resync_video_stream':
./mp_global.h:27:29: warning: left shift of negative value [-Wshift-negative-value]
   27 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
libmpcodecs/dec_video.c:157:34: note: in expansion of macro 'MP_NOPTS_VALUE'
  157 |     sh_video->last_pts         = MP_NOPTS_VALUE;
      |                                  ^~~~~~~~~~~~~~
libmpcodecs/dec_video.c: In function 'init_video':
libmpcodecs/dec_video.c:229:66: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member]
  229 |                                sh_video->bih ? ((unsigned int *) &sh_video->bih->biCompression) : NULL,
      |                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libmpcodecs/dec_video.c: In function 'decode_video':
./mp_global.h:27:29: warning: left shift of negative value [-Wshift-negative-value]
   27 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
libmpcodecs/dec_video.c:418:31: note: in expansion of macro 'MP_NOPTS_VALUE'
  418 |     if (correct_pts && pts != MP_NOPTS_VALUE
      |                               ^~~~~~~~~~~~~~
./mp_global.h:27:29: warning: left shift of negative value [-Wshift-negative-value]
   27 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
libmpcodecs/dec_video.c:471:29: note: in expansion of macro 'MP_NOPTS_VALUE'
  471 |             sh_video->pts = MP_NOPTS_VALUE;
      |                             ^~~~~~~~~~~~~~
./mp_global.h:27:29: warning: left shift of negative value [-Wshift-negative-value]
   27 | #define MP_NOPTS_VALUE (-1LL<<63) //both int64_t and double should be able to represent this exactly
      |                             ^~
libmpcodecs/dec_video.c:472:32: note: in expansion of macro 'MP_NOPTS_VALUE'
  472 |             sh_video->endpts = MP_NOPTS_VALUE;
      |                                ^~~~~~~~~~~~~~
cc -MMD -MP -Wundef -W -Wall -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O2 -march=x86-64 -mtune=generic -pipe -g -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fpie -DPIC -D_REENTRANT -I/usr/include/p11-kit-1 -I/usr/include/samba-4.0 -I/usr/include/ -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DZLIB_CONST -I/usr/include/bs2b -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/atk-1.0 -pthread -c -o libmpcodecs/img_format.o libmpcodecs/img_format.c
cc -MMD -MP -Wundef -W -Wall -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O2 -march=x86-64 -mtune=generic -pipe -g -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fpie -DPIC -D_REENTRANT -I/usr/include/p11-kit-1 -I/usr/include/samba-4.0 -I/usr/include/ -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -DZLIB_CONST -I/usr/include/bs2b -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/atk-1.0 -pthread -c -o libmpcodecs/mp_image.o libmpcodecs/mp_image.c
libmpcodecs/mp_image.c: In function 'mp_image_alloc_planes':
libmpcodecs/mp_image.c:39:39: error: 'INT_MAX' undeclared (first use in this function)
   39 |   if ((unsigned int)mpi->height + 2 > INT_MAX ||
      |                                       ^~~~~~~
libmpcodecs/mp_image.c:34:1: note: 'INT_MAX' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'?
   33 | #include "mp_msg.h"
  +++ |+#include <limits.h>
   34 |
libmpcodecs/mp_image.c:39:39: note: each undeclared identifier is reported only once for each function it appears in
   39 |   if ((unsigned int)mpi->height + 2 > INT_MAX ||
      |                                       ^~~~~~~
libmpcodecs/mp_image.c: In function 'mp_image_setfmt':
libmpcodecs/mp_image.c:229:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
  229 |         mpi->bpp=16;
      |         ~~~~~~~~^~~
libmpcodecs/mp_image.c:230:5: note: here
  230 |     case IMGFMT_Y800:
      |     ^~~~
libmpcodecs/mp_image.c:240:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
  240 |         mpi->flags|=MP_IMGFLAG_SWAPPED;
libmpcodecs/mp_image.c:241:5: note: here
  241 |     case IMGFMT_YUY2:
      |     ^~~~
libmpcodecs/mp_image.c:247:19: warning: this statement may fall through [-Wimplicit-fallthrough=]
  247 |         mpi->flags|=MP_IMGFLAG_SWAPPED;
libmpcodecs/mp_image.c:248:5: note: here
  248 |     case IMGFMT_NV21:
      |     ^~~~
make[2]: *** [Makefile:730: libmpcodecs/mp_image.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 mplayer returned exit code 2
make[1]: *** [debian/rules:97: override_dh_auto_build-arch] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:94: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202312/

About the archive rebuild: The build was made using virtual machines
from AWS, with enough memory, enough disk, and either one or two
CPUs, using a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.

Reply to: