]> git.sesse.net Git - ffmpeg/blobdiff - tools/patcheck
Use h263 tables in msmpeg4v1 dont duplicate them halfway.
[ffmpeg] / tools / patcheck
index ab1e237552cf8ffac79a489ad105930de4396b82..0e2836d4bf310ac6b47ab14717c295dcb0700fb1 100755 (executable)
@@ -41,6 +41,7 @@ hiegrep '//[-/<\* ]*$'    'empty comment' $*
 hiegrep '/\*[-<\* ]*\*/'  'empty comment' $*
 hiegrep 'for *\( *'"$ERE_PRITYP"' '  'not gcc 2.95 compatible' $*
 hiegrep '(static|inline|const) *\1'  'duplicate word' $*
+hiegrep 'INIT_VLC_USE_STATIC' 'forbidden ancient vlc type' $*
 
 hiegrep2 '(int|unsigned|static|void)[a-zA-Z0-9 _]*(init|end)[a-zA-Z0-9 _]*\(.*[^;]$' '(av_cold|:\+[^a-zA-Z_])' 'These functions may need av_cold, please review the whole patch for similar functions needing av_cold' $*
 
@@ -71,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