[FFmpeg-cvslog] r14382 - trunk/libavformat/nuv.c
reimar
subversion
Fri Jul 25 06:10:32 CEST 2008
Author: reimar
Date: Fri Jul 25 06:10:32 2008
New Revision: 14382
Log:
Fix handling of old nuv files where an aspect of 1 actually means 4/3
Patch by elupus (elupus ecce se)
Modified:
trunk/libavformat/nuv.c
Modified: trunk/libavformat/nuv.c
==============================================================================
--- trunk/libavformat/nuv.c (original)
+++ trunk/libavformat/nuv.c Fri Jul 25 06:10:32 2008
@@ -137,6 +137,8 @@ static int nuv_header(AVFormatContext *s
get_byte(pb); // 'P' == progressive, 'I' == interlaced
url_fskip(pb, 3); // padding
aspect = av_int2dbl(get_le64(pb));
+ if (aspect > 0.9999 && aspect < 1.0001)
+ aspect = 4.0 / 3.0;
fps = av_int2dbl(get_le64(pb));
// number of packets per stream type, -1 means unknown, e.g. streaming
More information about the ffmpeg-cvslog
mailing list