projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9296f5d
)
Fix handling of old nuv files where an aspect of 1 actually means 4/3
author
Joakim Plate
<elupus@ecce.se>
Fri, 25 Jul 2008 04:10:32 +0000
(
04:10
+0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Fri, 25 Jul 2008 04:10:32 +0000
(
04:10
+0000)
Patch by elupus (elupus ecce se)
Originally committed as revision 14382 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/nuv.c
patch
|
blob
|
history
diff --git
a/libavformat/nuv.c
b/libavformat/nuv.c
index c692cacf76a0eb1a58bb800d0748be36365e41e9..b76fe0cd6b18c9ba03ed6f56c3028b54f7924886 100644
(file)
--- 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