Message ID | 20230324221025.19447-2-michael@niedermayer.cc |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,1/2] avcodec/snow_dwt: Support correct rounding of dwt decomposition of non even sizes | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavcodec/snowdec.c b/libavcodec/snowdec.c index bed29d3390..b7a5864f4c 100644 --- a/libavcodec/snowdec.c +++ b/libavcodec/snowdec.c @@ -385,7 +385,7 @@ static int decode_header(SnowContext *s){ } s->spatial_decomposition_type+= (unsigned)get_symbol(&s->c, s->header_state, 1); - if(s->spatial_decomposition_type > 1U){ + if((s->spatial_decomposition_type & (~4)) > 1U){ av_log(s->avctx, AV_LOG_ERROR, "spatial_decomposition_type %d not supported\n", s->spatial_decomposition_type); return AVERROR_INVALIDDATA; }
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/snowdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)