avformat/apm: don't set bits_per_raw_sample

Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
pull/359/head
Zane van Iperen 4 years ago
parent 0c538ce30d
commit 5362fa2b75
No known key found for this signature in database
GPG Key ID: 68616B2D8AC4DCC5
  1. 1
      libavformat/apm.c

@ -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;

Loading…
Cancel
Save