mirror of https://git.ffmpeg.org/ffmpeg.git
aiffdec: fix bits per sample
Fixes Ticket1660 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a366beaf6a
commit
b9b97c2fb9
|
@ -105,7 +105,7 @@ static unsigned int get_aiff_header(AVFormatContext *s, int size,
|
||||||
codec->codec_type = AVMEDIA_TYPE_AUDIO;
|
codec->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||||
codec->channels = avio_rb16(pb);
|
codec->channels = avio_rb16(pb);
|
||||||
num_frames = avio_rb32(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);
|
exp = avio_rb16(pb);
|
||||||
val = avio_rb64(pb);
|
val = avio_rb64(pb);
|
||||||
|
|
Loading…
Reference in New Issue