avformat/utils: Add const where appropriate