[FFmpeg-cvslog] flvdec: fix creation of lots of phantom data streams

Michael Niedermayer git at videolan.org
Sun Sep 2 05:07:53 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Sep  2 05:01:08 2012 +0200| [4654bf44a767b4c3894d3f9e09ba29445877bad9] | committer: Michael Niedermayer

flvdec: fix creation of lots of phantom data streams

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4654bf44a767b4c3894d3f9e09ba29445877bad9
---

 libavformat/flvdec.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 822f381..c7b6922 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){



More information about the ffmpeg-cvslog mailing list