diff --git a/libavformat/nuv.c b/libavformat/nuv.c index 995775dc393ec71491c36fc32176046817fc8da7..c692cacf76a0eb1a58bb800d0748be36365e41e9 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