changeset 3598:50106b4dd6ba libavformat

Fix handling of old nuv files where an aspect of 1 actually means 4/3 Patch by elupus (elupus ecce se)
author reimar
date Fri, 25 Jul 2008 04:10:32 +0000
parents cfa94f80be53
children d99961d92b99
files nuv.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nuv.c	Thu Jul 24 18:40:43 2008 +0000
+++ b/nuv.c	Fri Jul 25 04:10:32 2008 +0000
@@ -137,6 +137,8 @@
     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