diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-11-09 23:12:44 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-11-09 23:12:44 +0000 |
commit | 260dfb1a3c5e24f1a95810d03faf8fbdf6eeff8c (patch) | |
tree | 21136e90a4e2cc42bfc724c20b02828cd88ceb9e /tools | |
parent | b00803e0ae39cb785acd6128adb367bb4a8b7a0d (diff) | |
download | ffmpeg-streaming-260dfb1a3c5e24f1a95810d03faf8fbdf6eeff8c.zip ffmpeg-streaming-260dfb1a3c5e24f1a95810d03faf8fbdf6eeff8c.tar.gz |
patcheck: check that pix_fmt etc. initializers are const
Originally committed as revision 20493 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/patcheck | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/patcheck b/tools/patcheck index 9f5be82..0e2836d 100755 --- a/tools/patcheck +++ b/tools/patcheck @@ -72,6 +72,10 @@ hiegrep '(:\+|,|;)( *|static|\*)*'"$ERE_PRITYP"' *(src|source|input|in)([0-9A-Z_ hiegrep ' *static *'"$ERE_FUNCS"'[^)]*\);' 'static prototype, maybe you should reorder your functions' $* hiegrep2 '\.long_name *=' 'NULL_IF_CONFIG_SMAL' 'missing NULL_IF_CONFIG_SMAL' $* +hiegrep2 '\.pix_fmts *= *(' 'const' 'missing const for pix_fmts array' $* +hiegrep2 '\.sample_fmts *= *(' 'const' 'missing const for sample_fmts array' $* +hiegrep2 '\.supported_framerates *= *(' 'const' 'missing const for supported_framerates array' $* +hiegrep2 '\.channel_layouts *= *(' 'const' 'missing const for channel_layouts array' $* #egrep $OPT '^\+.*const ' $*| grep -v 'static'> $TMP && printf '\nnon static const\n' #cat $TMP |