# HG changeset patch # User reimar # Date 1216924843 0 # Node ID cfa94f80be5354f1274b7cb6c268e44edb2dcc0d # Parent 1b3a5007712444e37364a9a81d3d2faa1518a284 aspect stored in nuv files must be converted from display- to sample-aspect. Patch by elupus (elupus ecce se) diff -r 1b3a50077124 -r cfa94f80be53 nuv.c --- 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