[FFmpeg-cvslog] wmalossless: Warn when decoding 24 bit depth

Vittorio Giovara git at videolan.org
Mon Sep 14 20:05:12 CEST 2015


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Mon Sep 14 19:15:44 2015 +0200| [65b96aba283b4c12a49e8c3dc4a3d4707ea5521e] | committer: Michael Niedermayer

wmalossless: Warn when decoding 24 bit depth

See ticket #4134

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

 libavcodec/wmalosslessdec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index e87291a..e9d0bca 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -201,6 +201,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
         if (s->bits_per_sample == 16)
             avctx->sample_fmt = AV_SAMPLE_FMT_S16P;
         else if (s->bits_per_sample == 24) {
+            av_log(avctx, AV_LOG_WARNING, "Decoding audio at 24 bit-depth\n");
             avctx->sample_fmt = AV_SAMPLE_FMT_S32P;
             avctx->bits_per_raw_sample = 24;
         } else {



More information about the ffmpeg-cvslog mailing list