Shorten copyright notice. The GPLv2 line does not add any additional information, so drop it. This leaves a single line of legalese text for most files, which is about the amount of screen real estate it deserves. This patch was created with the following script (plus some manual fixups): awk '{ if (NR <= 5) { gs = gensub(/.*Copyright.* ([0-9]+).*Andre Noll.*/, "\\1", "g") if (gs != $0) year = gs next } if (NR == 6 && year != "") printf("/* Copyright (C) %s Andre Noll <maan@tuebingen.mpg.de>, see file COPYING. */\n", year) print }'
wma_common.c: Remove pointless assignment.
Merge branch 'refs/heads/t/format-signedness' This series fixes all warnings produced by compiling with -Wformat-signedness and adds the flag to CFLAGS if the compiler supports it. * refs/heads/t/format-signedness (cooking for ~2 weeks): gcrypt: Fix a few format-signedness issues. Compile with -Wformat-signedness if possible. Fix signedness issues in format strings.
wma: Fix packet size calculation. Usually the (fixed) packet size of a wma file equals the block align value plus WMA_FRAME_SKIP. However, this is not true in general, and if the two values differ, we fail to decode the file and bail out with an "incoherent block length" error. This patch adds code to read the correct packet size from the file properties object and uses this value in the decoder and the audio format handler.
wma_common: Fix typo in log message.
Fix signedness issues in format strings. Compiling with -Wformat-signedness (not enabled so far) causes many warnings because of format strings which specify an unsigned type but correspond to an argument of signed type, or vice versa. This commit fixes all these mismatches. For "%u", "%d", "%lu", "%ld" we let the format string match the type of the argument, but for "%x" we need to cast the argument to a suitable unsigned type. After this patch the tree compiles cleanly with -Wformat-signedness given. The warning will be enabled in a subsequent commit.
Update year in copyright headers. Done with files=$(git grep -l 'Copyright (C) [0-9]\{4\}\(-2014\)* Andre Noll') sed --in-place= -e 's/Copyright (C) \([0-9]\{4\}\)-2014 Andre Noll/Copyright (C) \1 Andre Noll/1' $files In previous years we ran a similar script to set the second year in the range to the current year. This is kind of silly, so let's get rid of this useless information. This commit replaces "Copyright (C) A-B" by "Copyright (C) A" in all file headers, i.e. only the first year (A) is left in. Accurate information including time stamps for each change can be obtained from the git history.
Remove unnecessary system header includes. All these headers get included from para.h.
doc: Change email address to maan@tuebingen.mpg.de The mail server on systemlinux.org was down for more than a week lately, so let's use an alternative official address. This commit changes all maan@systemlinux.org addresses to maan@tuebingen.mpg.de. Most .c and .h files contain the email address in the copyright header, so they must all be patched. Three other files contain the address for a different reason: * README lists email and git, gitweb and home page URLs * configure.ac needs it for configure -h * version.c contains it for the -V option of all commands
wma: Store ASF header info in afhi->techinfo. This changes the wma audio format handler and decoder to store the ASF header bits we care about (exp_vlc, bit reservoir, and variable block length) in struct asf_header_info instead of struct private_wmadec_data. This way the wma audio format handler can print this information in its ->techinfo string for the audio file.
Change copyright year to 2014. This year, we're really on time. The changes in this patch were created by the following silly script: files=$(git grep -l 'Copyright (C) [0-9]\{4\}\(-2013\)* Andre Noll') sed --in-place= -e 's/Copyright (C) \([0-9]\{4\}\)-2013 Andre Noll/Copyright (C) \1-2014 Andre Noll/1' $files sed --in-place= -e 's/Copyright (C) 2013 Andre Noll/Copyright (C) 2013-2014 Andre Noll/1' $files
Change copyright year to 2013. Better late than never.
Change year in copyright message to 2012.
doc: Add some missing doxygen comments.
wma: Make log2_tab static. This table is only used in wma_common.c.
Mark a couple of functions as const. Probably does not matter much..
Replace 2010 in copyright message by 2011.
Change year in COPYRIGHT to 2010. Hey, this is earlier than last year :)
wma: Fix two gcc warnings on Slow Leopard: Fixes wma_common.c: In function 'search_pattern': wma_common.c:41: warning: format '%u' expects type 'unsigned int', but argument 5 has type 'long int' wma_common.c: In function 'find_audio_stream_info': wma_common.c:59: warning: format '%0x' expects type 'unsigned int', but argument 4 has type 'long int' The cast is neccessary because the type of a pointer difference is implementation-defined...
Fix two gcc warnings on MAC OS. This fixes: wma_common.c:41: warning: format '%zd' expects type 'signed size_t', but argument 5 has type 'int' wma_common.c:59: warning: format '%0zx' expects type 'size_t', but argument 4 has type 'int'