Mercurial > libavformat.hg
diff matroskadec.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 | 6b469866ffda |
children | beb15b4fd4c4 |
line wrap: on
line diff
--- a/matroskadec.c Sat Aug 23 23:13:58 2008 +0000 +++ b/matroskadec.c Sat Aug 23 23:43:20 2008 +0000 @@ -1274,8 +1274,8 @@ st->codec->codec_tag = track->video.fourcc; st->codec->width = track->video.pixel_width; st->codec->height = track->video.pixel_height; - av_reduce(&st->codec->sample_aspect_ratio.num, - &st->codec->sample_aspect_ratio.den, + av_reduce(&st->sample_aspect_ratio.num, + &st->sample_aspect_ratio.den, st->codec->height * track->video.display_width, st->codec-> width * track->video.display_height, 255);