Commit 532e9370 authored by Christophe Gisquet's avatar Christophe Gisquet Committed by Paul B Mahol

avcodec/wmalosslessdec: silence a sample request

16bits samples with CDLMS orders of 8 are currently unsupported, but have never
been encountered before.

However, 8 seems to be the most frequent, if not the only order used for 24bits.
In that case, the dsp functions are fine with handling order that are multiples
of 8, so silence the warning.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 8f435888
...@@ -468,7 +468,7 @@ static int decode_cdlms(WmallDecodeCtx *s) ...@@ -468,7 +468,7 @@ static int decode_cdlms(WmallDecodeCtx *s)
s->cdlms[0][0].order = 0; s->cdlms[0][0].order = 0;
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
if(s->cdlms[c][i].order & 8) { if(s->cdlms[c][i].order & 8 && s->bits_per_sample == 16) {
static int warned; static int warned;
if(!warned) if(!warned)
avpriv_request_sample(s->avctx, "CDLMS of order %d", avpriv_request_sample(s->avctx, "CDLMS of order %d",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment