[FFmpeg-trac] #5426(avcodec:open): wmavoice: problem with 2 modes

FFmpeg trac at avcodec.org
Wed Dec 21 00:30:33 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):

 The issue is in the postfilter. If I disable that:

 diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c
 index 90dfe20..58d8d15 100644
 --- a/libavcodec/wmavoice.c
 +++ b/libavcodec/wmavoice.c
 @@ -391,6 +391,7 @@ static av_cold int wmavoice_decode_init(AVCodecContext
 *ctx)
      flags                = AV_RL32(ctx->extradata + 18);
      s->spillover_bitsize = 3 + av_ceil_log2(ctx->block_align);
      s->do_apf            =    flags & 0x1;
 +    s->do_apf = 0;
      if (s->do_apf) {
          ff_rdft_init(&s->rdft,  7, DFT_R2C);
          ff_rdft_init(&s->irdft, 7, IDFT_C2R);

 the sample decodes audibly OK. It's possible that the post-filter doesn't
 handle clipped or overflowing samples correctly, which would go along with
 the fact that halving the volume fixes it...

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5426#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list