lavf/format: use const AVInputFormat for iteration