diff options
author | Diego Biurrun <diego@biurrun.de> | 2007-01-16 22:31:10 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2007-01-16 22:31:10 +0000 |
commit | db69c2e590be4ce47b4d85066b58f0a6bae8ef73 (patch) | |
tree | 3001698e67b2931b4afaaf34cd0bd58afa5e4dd5 | |
parent | a02142a50ac8fd2d5f137aee8ab060341919bc7b (diff) | |
download | ffmpeg-db69c2e590be4ce47b4d85066b58f0a6bae8ef73.tar.gz |
Make nb_streams unsigned to avoid an ugly cast.
Originally committed as revision 7556 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/avformat.h | 2 | ||||
-rw-r--r-- | libavformat/avidec.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 6057e34800..2c90e21ec9 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -298,7 +298,7 @@ typedef struct AVFormatContext { 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 */ diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 6d5a0c98e1..276689dd5c 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -397,7 +397,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) 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]; |