[FFmpeg-devel] [PATCH 24/28] changed: only require first packet to be known for all audio and video streams

Mans Rullgard mans
Wed Jun 30 11:09:52 CEST 2010


From: Cory Fields <theuni-nospam- at xbmc.org>

---
 libavformat/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index a255df3..c13e732 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2219,7 +2219,7 @@ int av_find_stream_info(AVFormatContext *ic)
                 break;
             if(st->parser && st->parser->parser->split && !st->codec->extradata)
                 break;
-            if(st->first_dts == AV_NOPTS_VALUE)
+            if(st->first_dts == AV_NOPTS_VALUE && (st->codec->codec_type == CODEC_TYPE_VIDEO || st->codec->codec_type == CODEC_TYPE_AUDIO))
                 break;
         }
         if (i == ic->nb_streams) {
-- 
1.7.1.1




More information about the ffmpeg-devel mailing list