diff options
author | Joakim Plate <elupus@ecce.se> | 2008-07-25 04:10:32 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2008-07-25 04:10:32 +0000 |
commit | 4c8e5dfcc57ddcb1320df7e7c7bf8df9c83afbc7 (patch) | |
tree | 34f956d21a620c8c96c49d01fd1fe5051b7db98a /libavformat/nuv.c | |
parent | 9296f5d81acb9b3f8d8870a78ded6e284a1f4f58 (diff) | |
download | ffmpeg-4c8e5dfcc57ddcb1320df7e7c7bf8df9c83afbc7.tar.gz |
Fix handling of old nuv files where an aspect of 1 actually means 4/3
Patch by elupus (elupus ecce se)
Originally committed as revision 14382 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nuv.c')
-rw-r--r-- | libavformat/nuv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/nuv.c b/libavformat/nuv.c index c692cacf76..b76fe0cd6b 100644 --- a/libavformat/nuv.c +++ b/libavformat/nuv.c @@ -137,6 +137,8 @@ static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) { 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 |