[FFmpeg-cvslog] r23249 - in trunk/libavformat: riff.h utils.c
stefano
subversion
Sat May 22 17:56:50 CEST 2010
Author: stefano
Date: Sat May 22 17:56:49 2010
New Revision: 23249
Log:
Prefer enum CodecID over int in ff_codec_get_tag().
Modified:
trunk/libavformat/riff.h
trunk/libavformat/utils.c
Modified: trunk/libavformat/riff.h
==============================================================================
--- trunk/libavformat/riff.h Sat May 22 04:13:01 2010 (r23248)
+++ trunk/libavformat/riff.h Sat May 22 17:56:49 2010 (r23249)
@@ -47,7 +47,7 @@ void ff_get_wav_header(ByteIOContext *pb
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);
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c Sat May 22 04:13:01 2010 (r23248)
+++ trunk/libavformat/utils.c Sat May 22 17:56:49 2010 (r23249)
@@ -2024,7 +2024,7 @@ static int try_decode_frame(AVStream *st
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)
More information about the ffmpeg-cvslog
mailing list