From 83c27079089270a65e53394b7e6b4ae8b94a6e6d Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sat, 22 May 2010 15:56:49 +0000 Subject: [PATCH] Prefer enum CodecID over int in ff_codec_get_tag(). Originally committed as revision 23249 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/riff.h | 2 +- libavformat/utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/riff.h b/libavformat/riff.h index 2696a0b3c9..69146a8834 100644 --- a/libavformat/riff.h +++ b/libavformat/riff.h @@ -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); diff --git a/libavformat/utils.c b/libavformat/utils.c index 435720f4a4..e5a6ce1846 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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)