changeset 5360:a00cc1aac80d libavformat

Use enum instead of integer types where appropriate.
author cehoyos
date Sun, 08 Nov 2009 23:48:15 +0000
parents 16a2de6da57e
children ce002ddccf1b
files raw.c rtmppkt.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/raw.c	Sun Nov 08 23:46:32 2009 +0000
+++ b/raw.c	Sun Nov 08 23:48:15 2009 +0000
@@ -66,7 +66,7 @@
 static int raw_read_header(AVFormatContext *s, AVFormatParameters *ap)
 {
     AVStream *st;
-    int id;
+    enum CodecID id;
 
     st = av_new_stream(s, 0);
     if (!st)
--- a/rtmppkt.c	Sun Nov 08 23:46:32 2009 +0000
+++ b/rtmppkt.c	Sun Nov 08 23:48:15 2009 +0000
@@ -75,7 +75,7 @@
     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);