Commit b837165c authored by michael's avatar michael

Fallback to sample rate if bit rate is 0. This avoids 0 timebases in nut.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12294 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f30f043a
......@@ -441,7 +441,7 @@ void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssiz
*au_rate = stream->time_base.den;
}else{
*au_scale= stream->block_align ? stream->block_align*8 : 8;
*au_rate = stream->bit_rate;
*au_rate = stream->bit_rate ? stream->bit_rate : 8*stream->sample_rate;
}
gcd= ff_gcd(*au_scale, *au_rate);
*au_scale /= gcd;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment