mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
lavf/riff: Support decoding Ambisonic wav files.
Reported and tested by Andy Furniss, adf d lists at gmail
This commit is contained in:
parent
2fc552b629
commit
f17ca46009
2 changed files with 4 additions and 0 deletions
|
|
@ -69,6 +69,8 @@ static void parse_waveformatex(AVIOContext *pb, AVCodecContext *c)
|
|||
|
||||
ff_get_guid(pb, &subformat);
|
||||
if (!memcmp(subformat + 4,
|
||||
(const uint8_t[]){ FF_AMBISONIC_BASE_GUID }, 12) ||
|
||||
!memcmp(subformat + 4,
|
||||
(const uint8_t[]){ FF_MEDIASUBTYPE_BASE_GUID }, 12)) {
|
||||
c->codec_tag = AV_RL32(subformat);
|
||||
c->codec_id = ff_wav_codec_get_id(c->codec_tag,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue