view help/help_check.sh @ 35603:ff4d8445f93e

Set AVSEEK_FLAG_BACKWARD also when seeking to the start of a file. Fixes -loop 0 with some files where libavformat seems to set a slightly off broken start_time value (probably, I have not yet analyzed in detail).
author reimar
date Tue, 18 Dec 2012 19:33:29 +0000
parents 4df5cb727be4
children cb9975cda4bc
line wrap: on
line source

#!/bin/sh
# Check help message header files.

CHECK=checkhelp

trap "rm -f ${CHECK}.c ${CHECK}.o" EXIT

CC=$1
shift

for h in "$@"; do
  cat <<EOF > ${CHECK}.c
#include <inttypes.h>
#include <string.h>
#include "config.h"
#include "$h"
void $CHECK () {
EOF
  sed -n "s:^[ \t]*#define[ \t]\+\([0-9A-Za-z_]\+\)[ \t].*:strdup(\1);:p" "$h" >> ${CHECK}.c
  echo "}" >> ${CHECK}.c
  $CC -Werror -c -o ${CHECK}.o ${CHECK}.c || exit
done