changeset 1663:a7508607760c libavformat

Make nb_streams unsigned to avoid an ugly cast.
author diego
date Tue, 16 Jan 2007 22:31:10 +0000
parents 089437ba7744
children 5e7460a2f209
files avformat.h avidec.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/avformat.h	Tue Jan 16 00:40:06 2007 +0000
+++ b/avformat.h	Tue Jan 16 22:31:10 2007 +0000
@@ -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 */
--- a/avidec.c	Tue Jan 16 00:40:06 2007 +0000
+++ b/avidec.c	Tue Jan 16 22:31:10 2007 +0000
@@ -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];