Commit b9b97c2f authored by Michael Niedermayer's avatar Michael Niedermayer

aiffdec: fix bits per sample

Fixes Ticket1660
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a366beaf
......@@ -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);
......
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