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

Michael Niedermayer michaelni
Fri Jul 2 00:46:10 CEST 2010


On Wed, Jun 30, 2010 at 10:09:52AM +0100, Mans Rullgard wrote:
> 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))

iam curious what this is supposed to improve
though i dont like this change, it looks ugly and hackish

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There will always be a question for which you do not know the correct awnser.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100702/c40bdded/attachment.pgp>



More information about the ffmpeg-devel mailing list