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

Paul B Mahol onemda at gmail.com
Wed Sep 1 00:13:05 EEST 2021


On Tue, Aug 31, 2021 at 11:10 PM Joel Linn <jl at conductive.de> wrote:

> 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.
>

Am I correct you already use XMA parser?


More information about the ffmpeg-devel mailing list