[FFmpeg-devel] [PATCH 05/15] avformat/wvedec: Inline constant

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Sat Mar 23 04:06:13 EET 2024


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavformat/wvedec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.40.1



More information about the ffmpeg-devel mailing list