Skip to content
Snippets Groups Projects
Commit 4654bf44 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

flvdec: fix creation of lots of phantom data streams

parent c112b6b6
No related branches found
No related tags found
No related merge requests found
...@@ -720,8 +720,9 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -720,8 +720,9 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
flv_same_video_codec(st->codec, flags)) { flv_same_video_codec(st->codec, flags)) {
break; break;
} }
} else if (st->id == stream_type) { } else if (stream_type == FLV_STREAM_TYPE_DATA) {
break; if (st->codec->codec_type == AVMEDIA_TYPE_DATA)
break;
} }
} }
if(i == s->nb_streams){ if(i == s->nb_streams){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment