diff mbox series

[FFmpeg-devel] lavf/swfdec: Allow decoding Nellymoser in swf

Message ID CAB0OVGrZmYv41bcdXLzk-g2S+24DOPqW2FktKggWaPv79W4b1Q@mail.gmail.com
State Accepted
Commit 9f8c81efc51755a8ff02c1cf02a7585d998e1380
Headers show
Series [FFmpeg-devel] lavf/swfdec: Allow decoding Nellymoser in swf
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Carl Eugen Hoyos March 16, 2021, 8:16 p.m. UTC
Hi,

apart from the existing code and the sample files in ticket #9153,
Nellymoser in swf is apparently supported by Flash binaries if I read
the existing exploit correctly.

Please comment, Carl Eugen
Subject: [PATCH] lavf/swfdec: Allow decoding Nellymoser in swf.

Such files exist in the wild, see ticket #9153.
---
 libavformat/swfdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Carl Eugen Hoyos March 20, 2021, 5:55 p.m. UTC | #1
Am Di., 16. März 2021 um 21:16 Uhr schrieb Carl Eugen Hoyos
<ceffmpeg@gmail.com>:

> apart from the existing code and the sample files in ticket #9153,
> Nellymoser in swf is apparently supported by Flash binaries if I read
> the existing exploit correctly.

Patch applied, Carl Eugen
diff mbox series

Patch

diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c
index 9416187803..60c02cca12 100644
--- a/libavformat/swfdec.c
+++ b/libavformat/swfdec.c
@@ -52,7 +52,7 @@  static const AVCodecTag swf_audio_codec_tags[] = {
     { AV_CODEC_ID_ADPCM_SWF,  0x01 },
     { AV_CODEC_ID_MP3,        0x02 },
     { AV_CODEC_ID_PCM_S16LE,  0x03 },
-//  { AV_CODEC_ID_NELLYMOSER, 0x06 },
+    { AV_CODEC_ID_NELLYMOSER, 0x06 },
     { AV_CODEC_ID_NONE,          0 },
 };