[FFmpeg-cvslog] r12327 - trunk/libavformat/aiff.c
bcoudurier
subversion
Wed Mar 5 13:02:32 CET 2008
Author: bcoudurier
Date: Wed Mar 5 13:02:32 2008
New Revision: 12327
Log:
correctly compute bit rate for compressed audio, should fix seeking in aiff
Modified:
trunk/libavformat/aiff.c
Modified: trunk/libavformat/aiff.c
==============================================================================
--- trunk/libavformat/aiff.c (original)
+++ trunk/libavformat/aiff.c Wed Mar 5 13:02:32 2008
@@ -152,7 +152,8 @@ static unsigned int get_aiff_header(Byte
if (!codec->block_align)
codec->block_align = (codec->bits_per_sample * codec->channels) >> 3;
- codec->bit_rate = codec->sample_rate * (codec->block_align << 3);
+ codec->bit_rate = (codec->frame_size ? codec->sample_rate/codec->frame_size :
+ codec->sample_rate) * (codec->block_align << 3);
/* Chunk is over */
if (size)
More information about the ffmpeg-cvslog
mailing list