missing_codec_desc 769 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. srcdir=${0%/*}/..
  3. while read -r field equal value; do
  4. case "$field $equal" in
  5. ".id =")
  6. eval "known_${value%,}=1"
  7. ;;
  8. esac
  9. done < $srcdir/libavcodec/codec_desc.c
  10. known_AV_CODEC_ID_NONE=1
  11. known_AV_CODEC_ID_FIRST_AUDIO=1
  12. known_AV_CODEC_ID_FIRST_SUBTITLE=1
  13. known_AV_CODEC_ID_FIRST_UNKNOWN=1
  14. known_AV_CODEC_ID_PROBE=1
  15. known_AV_CODEC_ID_MPEG2TS=1
  16. known_AV_CODEC_ID_MPEG4SYSTEMS=1
  17. known_AV_CODEC_ID_FFMETADATA=1
  18. in=0
  19. while read -r line; do
  20. case "$in-$line" in
  21. 0-"enum AVCodecID"*) in=1;;
  22. 1-*"};"*) in=0;;
  23. 1-*AV_CODEC_ID_*,*)
  24. cid="${line%%[, =]*}"
  25. eval "known=\$known_$cid"
  26. case "$known" in
  27. 1) ;;
  28. *) echo "$cid missing";;
  29. esac
  30. ;;
  31. esac
  32. done < $srcdir/libavcodec/avcodec.h