Commit fe2b1a11 authored by stefano's avatar stefano

Prefer enum CodecID over int in ff_codec_get_tag().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23249 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent df5ae5fe
......@@ -47,7 +47,7 @@ void ff_get_wav_header(ByteIOContext *pb, AVCodecContext *codec, int size);
extern const AVCodecTag ff_codec_bmp_tags[];
extern const AVCodecTag ff_codec_wav_tags[];
unsigned int ff_codec_get_tag(const AVCodecTag *tags, int id);
unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id);
enum CodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag);
void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale);
......
......@@ -2024,7 +2024,7 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt)
return ret;
}
unsigned int ff_codec_get_tag(const AVCodecTag *tags, int id)
unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id)
{
while (tags->id != CODEC_ID_NONE) {
if (tags->id == id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment