comparison utils.c @ 6032:44d635df3f26 libavformat

Prefer enum CodecID over int in ff_codec_get_tag().
author stefano
date Sat, 22 May 2010 15:56:49 +0000
parents ee42a04b24f2
children bf6169d77dbd
comparison
equal deleted inserted replaced
6031:02815f232ad3 6032:44d635df3f26
2022 } 2022 }
2023 fail: 2023 fail:
2024 return ret; 2024 return ret;
2025 } 2025 }
2026 2026
2027 unsigned int ff_codec_get_tag(const AVCodecTag *tags, int id) 2027 unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id)
2028 { 2028 {
2029 while (tags->id != CODEC_ID_NONE) { 2029 while (tags->id != CODEC_ID_NONE) {
2030 if (tags->id == id) 2030 if (tags->id == id)
2031 return tags->tag; 2031 return tags->tag;
2032 tags++; 2032 tags++;