TOOLS/idet.sh: Adjust for changes in FFmpeg.

Compatibility to older idet is preserved.