[FFmpeg-trac] #5426(avcodec:open): wmavoice: problem with 2 modes
FFmpeg
trac at avcodec.org
Wed Dec 21 00:50:42 EET 2016
#5426: wmavoice: problem with 2 modes
------------------------------------+-----------------------------------
Reporter: ami_stuff | Owner:
Type: defect | Status: open
Priority: normal | Component: avcodec
Version: git-master | Resolution:
Keywords: wmavoice | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
------------------------------------+-----------------------------------
Comment (by rbultje):
Some more digging: inside the postfilter, the issue is caused by adaptive
gain control. This patch also works around the issue:
@@ -824,8 +825,12 @@ static void postfilter(WMAVoiceContext *s, const
float *synth,
wiener_denoise(s, fcb_type, synth_pf, size, lpcs);
+#if 1
+ memcpy(samples, synth_pf, size * sizeof(*synth));
+#else
adaptive_gain_control(samples, synth_pf, synth, size, 0.99,
&s->postfilter_agc);
+#endif
if (s->dc_level > 8) {
/* remove ultra-low frequency DC noise / highpass filter;
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5426#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list