Browse Source

Make nb_streams unsigned to avoid an ugly cast.

Originally committed as revision 7556 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Diego Biurrun 19 years ago
parent
commit
db69c2e590
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libavformat/avformat.h
  2. +1
    -1
      libavformat/avidec.c

+ 1
- 1
libavformat/avformat.h View File

@@ -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 */


+ 1
- 1
libavformat/avidec.c View File

@@ -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];


Loading…
Cancel
Save