[FFmpeg-devel] [PATCH] Don't assume reading more frames in av_find_stream_info will change a CODEC_ID_NONE into something better

Michael Niedermayer michaelni
Mon Apr 12 19:38:20 CEST 2010


On Mon, Apr 12, 2010 at 02:06:25AM +0200, elupus wrote:
> Currently av_find_stream_info will assume that reading more frames may
> change a codec_id == CODEC_ID_NONE to something more exact. Asfar as i know
> this will never happen.
> 
> So this patch changes the check to CODEC_ID_PROBE which absolutely could be
> changed into something more exact. 
> 
> Reduces startup time of dvr-ms files specifically since they often have an
> unknown codec in them.
> 
> Joakim
Content-Description: Attached file: 0001-Don-t-assume-reading-more-frames-in-av_find_stream_i.patch
>  utils.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> b8b67334334868f753daa3a8d7aab88a08c0d6ce  0001-Don-t-assume-reading-more-frames-in-av_find_stream_i.patch
> From 3ed5ff6828fdc89890a70d23ffa9c7aba9f4f8b3 Mon Sep 17 00:00:00 2001
> From: Joakim Plate <joakim at mion.orange.local>
> Date: Mon, 12 Apr 2010 02:01:58 +0200
> Subject: [PATCH] Don't assume reading more frames in av_find_stream_info will change a CODEC_ID_NONE into something better

ok if it has been tested and the other demuxer maintainers dont object

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

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- 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/20100412/43d6aeb0/attachment.pgp>



More information about the ffmpeg-devel mailing list