aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-17 20:21:01 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-26 06:36:43 +0100
commit88f803cf64517c70e808420fddcba7bb1788645b (patch)
tree4ea2402edb52a94c63e4e9d72da7cf115c78d2dd
parent8768188581b4e47125d8eab625920e8ad65ed2d9 (diff)
downloadffmpeg-88f803cf64517c70e808420fddcba7bb1788645b.tar.gz
avformat/wvedec: Inline constant
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavformat/wvedec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wvedec.c b/libavformat/wvedec.c
index 43e6359892..13934b78e4 100644
--- a/libavformat/wvedec.c
+++ b/libavformat/wvedec.c
@@ -45,7 +45,7 @@ static int wve_read_header(AVFormatContext *s)
st->codecpar->codec_id = AV_CODEC_ID_PCM_ALAW;
st->codecpar->sample_rate = 8000;
st->codecpar->ch_layout.nb_channels = 1;
- st->codecpar->bits_per_coded_sample = av_get_bits_per_sample(st->codecpar->codec_id);
+ st->codecpar->bits_per_coded_sample = 8;
st->codecpar->block_align = st->codecpar->bits_per_coded_sample *
st->codecpar->ch_layout.nb_channels / 8;
avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);