Browse Source

flvdec: fix creation of lots of phantom data streams

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
4654bf44a7
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      libavformat/flvdec.c

+ 3
- 2
libavformat/flvdec.c View File

@@ -720,8 +720,9 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
flv_same_video_codec(st->codec, flags)) {
break;
}
} else if (st->id == stream_type) {
break;
} else if (stream_type == FLV_STREAM_TYPE_DATA) {
if (st->codec->codec_type == AVMEDIA_TYPE_DATA)
break;
}
}
if(i == s->nb_streams){


Loading…
Cancel
Save