[PATCH 3/5] winegstreamer: Reject incompatible input media types in MPEG audio decoder.
Zebediah Figura
zfigura at codeweavers.com
Wed Apr 27 12:56:53 CDT 2022
On 4/27/22 01:42, Anton Baskanov wrote:
> + if (format->wfx.wFormatTag != WAVE_FORMAT_MPEG
> + || sizeof(WAVEFORMATEX) + format->wfx.cbSize < sizeof(MPEG1WAVEFORMAT))
> + return S_FALSE;
Not a big deal, but some manual testing implies that native doesn't
actually check cbSize.
> +
> + if ((format->fwHeadLayer & (ACM_MPEG_LAYER1 | ACM_MPEG_LAYER2)) != format->fwHeadLayer)
> + return S_FALSE;
This doesn't read the most intuitively to me, and some manual testing
implies that the condition actually checked here is
if (format->fwHeadLayer == ACM_MPEG_LAYER3)
More information about the wine-devel
mailing list