Mercurial > libavformat.hg
changeset 3691:b91cad3c97e8 libavformat
matroskadec: remove useless num_streams
author | aurel |
---|---|
date | Tue, 05 Aug 2008 00:43:01 +0000 |
parents | 50c074bc02b4 |
children | e8f67b6063c3 |
files | matroskadec.c |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskadec.c Tue Aug 05 00:42:58 2008 +0000 +++ b/matroskadec.c Tue Aug 05 00:43:01 2008 +0000 @@ -190,10 +190,6 @@ 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 @@ } } - 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 @@ 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);