[FFmpeg-cvslog] r20482 - in trunk/libavformat: raw.c rtmppkt.c

cehoyos subversion
Mon Nov 9 00:48:15 CET 2009


Author: cehoyos
Date: Mon Nov  9 00:48:15 2009
New Revision: 20482

Log:
Use enum instead of integer types where appropriate.

Modified:
   trunk/libavformat/raw.c
   trunk/libavformat/rtmppkt.c

Modified: trunk/libavformat/raw.c
==============================================================================
--- trunk/libavformat/raw.c	Mon Nov  9 00:46:32 2009	(r20481)
+++ trunk/libavformat/raw.c	Mon Nov  9 00:48:15 2009	(r20482)
@@ -66,7 +66,7 @@ static int raw_write_packet(struct AVFor
 static int raw_read_header(AVFormatContext *s, AVFormatParameters *ap)
 {
     AVStream *st;
-    int id;
+    enum CodecID id;
 
     st = av_new_stream(s, 0);
     if (!st)

Modified: trunk/libavformat/rtmppkt.c
==============================================================================
--- trunk/libavformat/rtmppkt.c	Mon Nov  9 00:46:32 2009	(r20481)
+++ trunk/libavformat/rtmppkt.c	Mon Nov  9 00:48:15 2009	(r20482)
@@ -75,7 +75,7 @@ int ff_rtmp_packet_read(URLContext *h, R
     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);



More information about the ffmpeg-cvslog mailing list