[FFmpeg-devel] [PATCH] avcodec/wmaprodec: skip foreign XMA packets

Joel Linn jl at conductive.de
Wed Sep 1 00:10:22 EEST 2021


Hello,

On 2021-08-31 22:53, Paul B Mahol wrote:
> What samples this fixes?

No specific sample, it depends on the way the decoder is invoked.

It fixes using the xma1/2 decoder directly on a memory buffer and not 
wanting to decode all channels in the stream.
Say the stream has 6 channels and one wants to only decode 2.
Previously this was not possible due to the skip logic of the channel 
interleaving.

This should also make the decoder more robust because in theory it is 
possible to have an xma stream which has chunks of 2kB junk data 
(packets) which are expected to be skipped due to the skip_packets 
numbers.
I haven't seen such streams though.


More information about the ffmpeg-devel mailing list