1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avformat/apm: don't set bits_per_raw_sample

Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
This commit is contained in:
Zane van Iperen
2021-07-18 10:41:21 +10:00
parent 0c538ce30d
commit 5362fa2b75

View File

@@ -146,7 +146,6 @@ static int apm_read_header(AVFormatContext *s)
par->codec_type = AVMEDIA_TYPE_AUDIO; par->codec_type = AVMEDIA_TYPE_AUDIO;
par->codec_id = AV_CODEC_ID_ADPCM_IMA_APM; par->codec_id = AV_CODEC_ID_ADPCM_IMA_APM;
par->format = AV_SAMPLE_FMT_S16; par->format = AV_SAMPLE_FMT_S16;
par->bits_per_raw_sample = 16;
par->bit_rate = par->channels * par->bit_rate = par->channels *
par->sample_rate * par->sample_rate *
par->bits_per_coded_sample; par->bits_per_coded_sample;