[FFmpeg-devel] [PATCH] AST muxer

jamal jamrial at gmail.com
Thu Nov 22 17:28:35 CET 2012


On 22/11/12 12:45 PM, Paul B Mahol wrote:
> Hmm, do you actually have ast files with afc adpcm ?
> 
> The only sample I have is very ugly. Apparently one need
> to use number of samples in header to get real number of samples
> in last frame.

No, i don't. I only tested it with PCM_S16B_PLANAR, which works fine.
If we can't be sure it will work with ADPCM AFC then I can disable the corresponding code for now (Maybe returning AVERROR_PATCHWELCOME while at it).

That being said, according to http://wiibrew.org/wiki/AST_file the 4 bytes starting from position 0x0020 represent the size of the first BLCK chunk.
Your demuxer skips it, and vgstream seems to ignore it as well since I tried making that the value of the last BCLK chunk instead and vgstream extracts and decodes the pcm stream with the same results.
Maybe that position should contain the value of the last frame instead of the first frame, which is then only used with ADPCM AFC?

Regards.


More information about the ffmpeg-devel mailing list