You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
aiffdec: fix bits per sample
Fixes Ticket1660 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user