Mercurial > libavformat.hg
diff nuv.c @ 3759:27537074f2a9 libavformat
convert every muxer/demuxer to write/read sample_aspect_ratio from/to
the corresponding AVStream instead of AVCodecContext
author | aurel |
---|---|
date | Sat, 23 Aug 2008 23:43:20 +0000 |
parents | 50106b4dd6ba |
children | 1d3d17de20ba |
line wrap: on
line diff
--- a/nuv.c Sat Aug 23 23:13:58 2008 +0000 +++ b/nuv.c Sat Aug 23 23:43:20 2008 +0000 @@ -158,7 +158,7 @@ vst->codec->width = width; vst->codec->height = height; vst->codec->bits_per_sample = 10; - vst->codec->sample_aspect_ratio = av_d2q(aspect * height / width, 10000); + vst->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