changeset 120:c720ddf380df libavformat

* more strict types
author kabi
date Wed, 23 Apr 2003 08:56:14 +0000
parents 602546f3cbea
children b9bd706c1ac3
files avi.h avienc.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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)