[FFmpeg-cvslog] r12294 - trunk/libavformat/riff.c
michael
subversion
Mon Mar 3 00:47:31 CET 2008
Author: michael
Date: Mon Mar 3 00:47:30 2008
New Revision: 12294
Log:
Fallback to sample rate if bit rate is 0. This avoids 0 timebases in nut.
Modified:
trunk/libavformat/riff.c
Modified: trunk/libavformat/riff.c
==============================================================================
--- trunk/libavformat/riff.c (original)
+++ trunk/libavformat/riff.c Mon Mar 3 00:47:30 2008
@@ -441,7 +441,7 @@ void ff_parse_specific_params(AVCodecCon
*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;
More information about the ffmpeg-cvslog
mailing list