diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 874f5bbb73..8862d1274c 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -2064,6 +2064,16 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *picture, for (int i = 0; i < 4; i++) s->channel_offsets[i] *= 2; } + if (s->compression == EXR_DWAA || + s->compression == EXR_DWAB) { + for (int i = 0; inb_channels; i++) { + EXRChannel *channel = &s->channels[i]; + if (channel->pixel_type != s->pixel_type) { + avpriv_request_sample(s->avctx, "mixed pixel type DWA"); + return AVERROR_PATCHWELCOME; + } + } + } switch (s->pixel_type) { case EXR_FLOAT: