parent
0b3c230542
commit
92c07acce7
3 changed files with 14 additions and 0 deletions
|
@ -3347,6 +3347,11 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
|
|||
st->r_frame_rate.den = st->time_base.num;
|
||||
}
|
||||
}
|
||||
if (st->display_aspect_ratio.num && st->display_aspect_ratio.den) {
|
||||
AVRational hw_ratio = { st->codec->height, st->codec->width };
|
||||
st->sample_aspect_ratio = av_mul_q(st->display_aspect_ratio,
|
||||
hw_ratio);
|
||||
}
|
||||
} else if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
|
||||
if (!st->codec->bits_per_coded_sample)
|
||||
st->codec->bits_per_coded_sample =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue