OSDN Git Service

Use enum instead of integer types where appropriate.
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sun, 8 Nov 2009 23:48:15 +0000 (23:48 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sun, 8 Nov 2009 23:48:15 +0000 (23:48 +0000)
Originally committed as revision 20482 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/raw.c
libavformat/rtmppkt.c

index 1449a20..1af7d11 100644 (file)
@@ -66,7 +66,7 @@ static int raw_write_packet(struct AVFormatContext *s, AVPacket *pkt)
 static int raw_read_header(AVFormatContext *s, AVFormatParameters *ap)
 {
     AVStream *st;
-    int id;
+    enum CodecID id;
 
     st = av_new_stream(s, 0);
     if (!st)
index f6e2a90..e1f0647 100644 (file)
@@ -75,7 +75,7 @@ int ff_rtmp_packet_read(URLContext *h, RTMPPacket *p,
     uint8_t hdr, t, buf[16];
     int channel_id, timestamp, data_size, offset = 0;
     uint32_t extra = 0;
-    uint8_t type;
+    enum RTMPPacketType type;
 
     if (url_read(h, &hdr, 1) != 1)
         return AVERROR(EIO);