Mercurial > libavformat.hg
comparison oggparsetheora.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 | 6f61c3b36632 |
children | 11169564fbdc |
comparison
equal
deleted
inserted
replaced
3758:e966560661e5 | 3759:27537074f2a9 |
---|---|
85 skip_bits(&gb, 16); | 85 skip_bits(&gb, 16); |
86 st->codec->time_base.den = get_bits_long(&gb, 32); | 86 st->codec->time_base.den = get_bits_long(&gb, 32); |
87 st->codec->time_base.num = get_bits_long(&gb, 32); | 87 st->codec->time_base.num = get_bits_long(&gb, 32); |
88 st->time_base = st->codec->time_base; | 88 st->time_base = st->codec->time_base; |
89 | 89 |
90 st->codec->sample_aspect_ratio.num = get_bits_long(&gb, 24); | 90 st->sample_aspect_ratio.num = get_bits_long(&gb, 24); |
91 st->codec->sample_aspect_ratio.den = get_bits_long(&gb, 24); | 91 st->sample_aspect_ratio.den = get_bits_long(&gb, 24); |
92 | 92 |
93 if (version >= 0x030200) | 93 if (version >= 0x030200) |
94 skip_bits(&gb, 38); | 94 skip_bits(&gb, 38); |
95 if (version >= 0x304000) | 95 if (version >= 0x304000) |
96 skip_bits(&gb, 2); | 96 skip_bits(&gb, 2); |