[FFmpeg-devel] [PATCH] avformat/xwma: fix WMAv2 with incorrect bit rate

2018-10-03 Thread bananaman255
From: bnnm Fixes trac issue #7215 Output for files created by xWMAEncode and various videogames is correct now. 1ch 32000hz files are still broken, would need fixes in WMA decoder. Signed-off-by: bnnm --- libavformat/xwma.c | 38 +++--- 1 file changed, 31 inse

[FFmpeg-devel] [PATCH] avcodec/wmaprodec: improve WMAPRO/XMA gapless output

2018-10-03 Thread bananaman255
From: bnnm Improves trac issue #6722. Fixes truncated XMA output (was missing 128 samples) and applies bitstream gapless info (partially for XMA, fully for WMAPRO). Applying XMA end_skip would require some extra changes in the XMA multi-stream handling, so end samples are slightly bigger than

[FFmpeg-devel] [PATCH] avcodec/wmadec: fix WMA gapless playback

2018-10-05 Thread bananaman255
From: bnnm Fixes trac issue #7473. Removes encoder delay (skip samples) and writes remaining frame samples after EOF to get correct sample count. Output is now accurate vs players that use Microsoft's codecs (Windows Media Format Runtime). Tested vs encode>decode WMAv2 with MS's codecs and m

[FFmpeg-devel] [PATCH] avcodec/wmaprodec: improve WMAPRO/XMA gapless output

2018-10-09 Thread bananaman255
From: bnnm Improves trac issue #6722. Fixes truncated WMAPRO/XMA output due to delay samples and partially applies bitstream gapless info. This can be tested with files encoding a small nb_samples (like 400), which couldn't output anything due to missing delay at the end. Applying end_skip an

[FFmpeg-devel] [PATCH] avcodec/wmaprodec: improve XMA missing samples

2018-10-26 Thread bananaman255
From: bnnm Writes missing (delay) samples after EOF. Signed-off-by: bnnm --- libavcodec/wmaprodec.c | 35 --- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c index 9439bfa771..d0fa974c80 100644 --- a

[FFmpeg-devel] [PATCH] avcodec/wmaprodec: support multichannel XMA stream configurations

2017-10-03 Thread bananaman255
From: bnnm Signed-off-by: bnnm Now accepts any combination of 1/2ch streams, described in the RIFF chunks/extradata --- libavcodec/wmaprodec.c | 151 - libavformat/wavdec.c | 20 --- 2 files changed, 112 insertions(+), 59 deletions(-) di

[FFmpeg-devel] [PATCH] avcodec/atrac3: allow 6 channels (non-joint stereo)

2017-01-19 Thread bananaman255
From: bnnm Raises max channels to 6 (for non joint-stereo only), there is no difference decoding 1 or N discrete channels. Fixes trac issue #5840 Signed-off-by: bnnm --- libavcodec/atrac3.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/libavcodec/atrac3.

[FFmpeg-devel] [PATCH] avformat/msf: fix codec 4 (joint stereo ATRAC3) and align

2017-01-30 Thread bananaman255
From: bnnm Codec 4 (frame size 98) uses joint stereo per spec and examples. Also removed an incorrect "align" var which wasn't used anyway (it was overwrittern). Probably all/only .AT3 of frame size 98 are JS, too. Signed-off-by: bnnm --- libavformat/msf.c | 13 ++--- 1 file changed,

[FFmpeg-devel] [PATCH] avcodec/atrac3: Add multichannel joint stereo ATRAC3

2017-01-30 Thread bananaman255
From: bnnm Multichannel joint stereo simply interleaves stereo pairs (6ch: 2ch + 2ch + 2ch), so each pair is decoded separatedly. *** To test my changes, I converted examples to wav with ffmpeg.exe (old and new), and compared them to see they are byte-exact. Regular 2ch files (JS and normal)

[FFmpeg-devel] [PATCH] lavf/bink: fix latest header and add all existing revisions

2017-08-18 Thread bananaman255
From: bnnm KB2 'i' found in Life is Strange (Xbox 360), rest verified against binkconv.exe Signed-off-by: bnnm --- libavformat/bink.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/libavformat/bink.c b/libavformat/bink.c index 20dba677db..8a05082fcd 1006