summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-11-08 23:48:15 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-11-08 23:48:15 +0000
commit0f87b77176e0ff347170d5aaa46c7b2a6253a702 (patch)
tree2e0970b0faa7e7d980a7ba0ddcd129eb5681a4d2
parent80454494dea444a4de8950fb1f8f76c30a9f34b2 (diff)
Use enum instead of integer types where appropriate.
Originally committed as revision 20482 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/raw.c2
-rw-r--r--libavformat/rtmppkt.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/raw.c b/libavformat/raw.c
index 1449a20240..1af7d1118b 100644
--- a/libavformat/raw.c
+++ b/libavformat/raw.c
@@ -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)
diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c
index f6e2a9024e..e1f0647fbb 100644
--- a/libavformat/rtmppkt.c
+++ b/libavformat/rtmppkt.c
@@ -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);