diff sol.c @ 3967:4fd67f05bad9 libavformat

Use enum typers instead of int. Patch by Diego 'Flameeyes' Petten: flameeyes gmail
author benoit
date Thu, 02 Oct 2008 16:03:00 +0000
parents 31a0f3b99ef7
children 77e0c7511d41
line wrap: on
line diff
--- a/sol.c	Thu Oct 02 15:52:04 2008 +0000
+++ b/sol.c	Thu Oct 02 16:03:00 2008 +0000
@@ -47,7 +47,7 @@
 #define SOL_16BIT   4
 #define SOL_STEREO 16
 
-static int sol_codec_id(int magic, int type)
+static enum CodecID sol_codec_id(int magic, int type)
 {
     if (magic == 0x0B8D)
     {
@@ -88,7 +88,8 @@
     int size;
     unsigned int magic,tag;
     ByteIOContext *pb = s->pb;
-    unsigned int id, codec, channels, rate, type;
+    unsigned int id, channels, rate, type;
+    enum CodecID codec;
     AVStream *st;
 
     /* check ".snd" header */