diff options
author | Joakim Plate <elupus@ecce.se> | 2008-07-24 18:40:43 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2008-07-24 18:40:43 +0000 |
commit | 3a459ebe352cae3cb61010e57dc4aaa713830695 (patch) | |
tree | 98759959bc35a416d3bb15858e7a0d56c4c55831 /libavformat/nuv.c | |
parent | 1e90317b655699a2877478e335e998fb5e4b79d8 (diff) | |
download | ffmpeg-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
Diffstat (limited to 'libavformat/nuv.c')
-rw-r--r-- | libavformat/nuv.c | 2 |
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 |