aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-02 05:01:08 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-02 05:04:14 +0200
commit4654bf44a767b4c3894d3f9e09ba29445877bad9 (patch)
tree177cf0247ee171af825a887381e1849a1f7e0ab9 /libavformat
parentc112b6b68f8c56ab4059ddfa4a6825da162fd30f (diff)
downloadffmpeg-4654bf44a767b4c3894d3f9e09ba29445877bad9.tar.gz
flvdec: fix creation of lots of phantom data streams
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/flvdec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 822f38104f..c7b692273f 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -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){