Mercurial > libavformat.hg
changeset 3597:cfa94f80be53 libavformat
aspect stored in nuv files must be converted from display- to sample-aspect.
Patch by elupus (elupus ecce se)
author | reimar |
---|---|
date | Thu, 24 Jul 2008 18:40:43 +0000 |
parents | 1b3a50077124 |
children | 50106b4dd6ba |
files | nuv.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/nuv.c Thu Jul 24 17:09:28 2008 +0000 +++ b/nuv.c Thu Jul 24 18:40:43 2008 +0000 @@ -156,7 +156,7 @@ 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