[FFmpeg-devel] [PATCH]lavf/riff: Do not use a rogue twocc for adpcm_swf

Carl Eugen Hoyos ceffmpeg at gmail.com
Sat Sep 17 16:06:57 EEST 2016


2016-09-15 20:48 GMT+02:00 Michael Niedermayer <michael at niedermayer.cc>:
> On Thu, Sep 15, 2016 at 03:47:49PM +0200, Carl Eugen Hoyos wrote:
>> 2016-09-15 15:42 GMT+02:00 Michael Niedermayer <michael at niedermayer.cc>:
>> >> -    { AV_CODEC_ID_ADPCM_SWF,       ('S' << 8) + 'F' },
>> >>      /* HACK/FIXME: Does Vorbis in WAV/AVI have an (in)official ID? */
>> >>      { AV_CODEC_ID_VORBIS,          ('V' << 8) + 'o' },
>> >>      { AV_CODEC_ID_NONE,      0 },
>> >
>> > does this affect adpcm_swf in nut ?
>>
>> Yes, indeed.
>>
>> Is it possible to fix adpcm_swf in wav?
>
> maybe if block_align is set (and is constant)

Attached fixes encoding, decoding still has the issue
that the decoder doesn't like more than one packet.
(Iiuc, it works if I limit the packet size in the wav demuxer.)

Carl Eugen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavc-adpcmenc-Set-block_align-for-adpcm_swf.patch
Type: text/x-patch
Size: 796 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160917/4fb569b4/attachment.bin>


More information about the ffmpeg-devel mailing list