# HG changeset patch # User kabi # Date 1051088174 0 # Node ID c720ddf380dff1570f2c3a7cdb6cf9ed59f74a2a # Parent 602546f3cbea0bd404440f48f264331330a32e34 * more strict types diff -r 602546f3cbea -r c720ddf380df avi.h --- a/avi.h Wed Apr 23 02:04:40 2003 +0000 +++ b/avi.h Wed Apr 23 08:56:14 2003 +0000 @@ -27,4 +27,5 @@ 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); diff -r 602546f3cbea -r c720ddf380df avienc.c --- a/avienc.c Wed Apr 23 02:04:40 2003 +0000 +++ b/avienc.c Wed Apr 23 08:56:14 2003 +0000 @@ -185,14 +185,14 @@ 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)