aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Plate <elupus@ecce.se>2008-07-24 18:40:43 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-07-24 18:40:43 +0000
commit3a459ebe352cae3cb61010e57dc4aaa713830695 (patch)
tree98759959bc35a416d3bb15858e7a0d56c4c55831
parent1e90317b655699a2877478e335e998fb5e4b79d8 (diff)
downloadffmpeg-3a459ebe352cae3cb61010e57dc4aaa713830695.tar.gz
aspect stored in nuv files must be converted from display- to sample-aspect.
Patch by elupus (elupus ecce se) Originally committed as revision 14375 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/nuv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nuv.c b/libavformat/nuv.c
index 995775dc39..c692cacf76 100644
--- a/libavformat/nuv.c
+++ b/libavformat/nuv.c
@@ -156,7 +156,7 @@ static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) {
vst->codec->width = width;
vst->codec->height = height;
vst->codec->bits_per_sample = 10;
- vst->codec->sample_aspect_ratio = av_d2q(aspect, 10000);
+ vst->codec->sample_aspect_ratio = av_d2q(aspect * height / width, 10000);
vst->r_frame_rate = av_d2q(fps, 60000);
av_set_pts_info(vst, 32, 1, 1000);
} else