[FFmpeg-devel] [PATCH] read sample aspect ratio from video stream if not known from container

Michael Niedermayer michaelni
Mon Feb 9 23:01:19 CET 2009


On Mon, Feb 09, 2009 at 04:55:53PM +0100, Pawe? Ko?odziej wrote:
> Hello,
> 
> File 
> http://derchris.eu/ccc/25C3/video_h264_720x576/25c3-2596-en-swf_and_the_malware_tragedy.mp4
> (h264 in mp4) has SampleAspectRato 5:4 but information about it is not
> stored in container but in video stream (VUI). This information is not
> read by ffmpeg[1] and this results in output stream with SAR 1:1
> (wrong).
> 
> Attached patch fix it - if SAR is not known from container then it's
> read from video stream. I hope it does not break anything. 

a file that contains no aspect at all will cause av_find_stream_info()
to run for a very long time with this patch

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

I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- 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/20090209/cdf71995/attachment.pgp>



More information about the ffmpeg-devel mailing list