[FFmpeg-cvslog] avformat/wvedec: Inline constant

Andreas Rheinhardt git at videolan.org
Tue Mar 26 07:44:20 EET 2024


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Mar 17 20:21:01 2024 +0100| [88f803cf64517c70e808420fddcba7bb1788645b] | committer: Andreas Rheinhardt

avformat/wvedec: Inline constant

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=88f803cf64517c70e808420fddcba7bb1788645b
---

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



More information about the ffmpeg-cvslog mailing list