projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c112b6b
)
flvdec: fix creation of lots of phantom data streams
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 2 Sep 2012 03:01:08 +0000
(
05:01
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 2 Sep 2012 03:04:14 +0000
(
05:04
+0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/flvdec.c
patch
|
blob
|
history
diff --git
a/libavformat/flvdec.c
b/libavformat/flvdec.c
index 822f38104fb222da3a251f5439961a40f51ade88..c7b692273fc447b934d57890cb66b80fe0ed2bb9 100644
(file)
--- 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){