[Ffmpeg-cvslog] r7556 - in trunk/libavformat: avformat.h avidec.c

diego subversion
Tue Jan 16 23:31:10 CET 2007


Author: diego
Date: Tue Jan 16 23:31:10 2007
New Revision: 7556

Modified:
   trunk/libavformat/avformat.h
   trunk/libavformat/avidec.c

Log:
Make nb_streams unsigned to avoid an ugly cast.


Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h	(original)
+++ trunk/libavformat/avformat.h	Tue Jan 16 23:31:10 2007
@@ -298,7 +298,7 @@
     struct AVOutputFormat *oformat;
     void *priv_data;
     ByteIOContext pb;
-    int nb_streams;
+    unsigned int nb_streams;
     AVStream *streams[MAX_STREAMS];
     char filename[1024]; /* input or output filename */
     /* stream info */

Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c	(original)
+++ trunk/libavformat/avidec.c	Tue Jan 16 23:31:10 2007
@@ -397,7 +397,7 @@
             break;
         case MKTAG('s', 't', 'r', 'f'):
             /* stream header */
-            if (stream_index >= (unsigned)s->nb_streams || avi->dv_demux) {
+            if (stream_index >= s->nb_streams || avi->dv_demux) {
                 url_fskip(pb, size);
             } else {
                 st = s->streams[stream_index];




More information about the ffmpeg-cvslog mailing list