Mercurial > libavformat.hg
comparison utils.c @ 1804:302115721ef5 libavformat
try to fill in missing bits_per_sample
author | michael |
---|---|
date | Tue, 20 Feb 2007 16:18:59 +0000 |
parents | eb16c64144ee |
children | 0c28d35086f5 |
comparison
equal
deleted
inserted
replaced
1803:f05a4a9b1d19 | 1804:302115721ef5 |
---|---|
2016 }else{ | 2016 }else{ |
2017 st->r_frame_rate.num = st->time_base.den; | 2017 st->r_frame_rate.num = st->time_base.den; |
2018 st->r_frame_rate.den = st->time_base.num; | 2018 st->r_frame_rate.den = st->time_base.num; |
2019 } | 2019 } |
2020 } | 2020 } |
2021 }else if(st->codec->codec_type == CODEC_TYPE_AUDIO) { | |
2022 if(!st->codec->bits_per_sample) | |
2023 st->codec->bits_per_sample= av_get_bits_per_sample(st->codec->codec_id); | |
2021 } | 2024 } |
2022 } | 2025 } |
2023 | 2026 |
2024 av_estimate_timings(ic, old_offset); | 2027 av_estimate_timings(ic, old_offset); |
2025 #if 0 | 2028 #if 0 |