Commit 2387cc65 authored by kabi's avatar kabi

* more strict types


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1815 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 48095323
......@@ -1141,7 +1141,7 @@ int avoption_parse(void* strct, const AVOption* list, const char* opts);
*/
typedef struct AVCodec {
const char *name;
int type;
enum CodecType type;
int id;
int priv_data_size;
int (*init)(AVCodecContext *);
......
......@@ -27,4 +27,5 @@ extern const CodecTag codec_bmp_tags[];
extern const CodecTag codec_wav_tags[];
unsigned int codec_get_tag(const CodecTag *tags, int id);
int codec_get_id(const CodecTag *tags, unsigned int tag);
enum CodecID;
enum CodecID codec_get_id(const CodecTag *tags, unsigned int tag);
......@@ -185,14 +185,14 @@ static unsigned int codec_get_asf_tag(const CodecTag *tags, int id)
return 0;
}
int codec_get_id(const CodecTag *tags, unsigned int tag)
enum CodecID codec_get_id(const CodecTag *tags, unsigned int tag)
{
while (tags->id != 0) {
if (tags->tag == tag)
return tags->id;
tags++;
}
return 0;
return CODEC_ID_NONE;
}
unsigned int codec_get_bmp_tag(int 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