Mercurial > libavformat.hg
changeset 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 | 02815f232ad3 |
children | c7b98381ec2d |
files | riff.h utils.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/riff.h Sat May 22 01:41:38 2010 +0000 +++ b/riff.h Sat May 22 15:56:49 2010 +0000 @@ -47,7 +47,7 @@ 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);
--- a/utils.c Sat May 22 01:41:38 2010 +0000 +++ b/utils.c Sat May 22 15:56:49 2010 +0000 @@ -2024,7 +2024,7 @@ 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)