diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-05 04:43:01 +0400 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-05 04:43:01 +0400 |
commit | cc70d14b3d12f1c1d53788b841f59c0c85778296 (patch) | |
tree | 20d6d39e7ae234709541219fe40a49b1a321b87f /libavformat | |
parent | 88cca989471ccf28de34efbc07a87807bcd45941 (diff) |
matroskadec: remove useless num_streams
Originally committed as revision 14611 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskadec.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index cc145961e0..52b1711c0c 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -190,10 +190,6 @@ typedef struct { EbmlList index; EbmlList seekhead; - /* num_streams is the number of streams that av_new_stream() was called - * for ( = that are available to the calling program). */ - int num_streams; - /* byte position of the segment inside the stream */ offset_t segment_start; @@ -1087,7 +1083,7 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap) } } - st = track->stream = av_new_stream(s, matroska->num_streams++); + st = track->stream = av_new_stream(s, 0); if (st == NULL) return AVERROR(ENOMEM); @@ -1223,7 +1219,7 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap) attachements[j].bin.data && attachements[j].bin.size > 0)) { av_log(matroska->ctx, AV_LOG_ERROR, "incomplete attachment\n"); } else { - AVStream *st = av_new_stream(s, matroska->num_streams++); + AVStream *st = av_new_stream(s, 0); if (st == NULL) break; st->filename = av_strdup(attachements[j].filename); |