summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avi.h3
-rw-r--r--libavformat/avienc.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/avi.h b/libavformat/avi.h
index 193c5812c3..73a43032d4 100644
--- a/libavformat/avi.h
+++ b/libavformat/avi.h
@@ -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);
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index f7017a1bbd..2194af0f57 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -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)