aiffdec: fix bits per sample

Fixes Ticket1660

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-08-27 02:02:37 +02:00
parent a366beaf6a
commit b9b97c2fb9
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ static unsigned int get_aiff_header(AVFormatContext *s, int size,
codec->codec_type = AVMEDIA_TYPE_AUDIO;
codec->channels = avio_rb16(pb);
num_frames = avio_rb32(pb);
codec->bits_per_coded_sample = avio_rb16(pb);
codec->bits_per_coded_sample = avio_rb16(pb) / FFMAX(codec->channels, 1);
exp = avio_rb16(pb);
val = avio_rb64(pb);