[FFmpeg-trac] #9397(undetermined:open): Allow any ADPCM block size to support XAudio2

FFmpeg trac at avcodec.org
Sat Feb 26 17:46:47 EET 2022


#9397: Allow any ADPCM block size to support XAudio2
-------------------------------------+-------------------------------------
             Reporter:  Thomas       |                    Owner:  zane
  Cashman                            |
                 Type:  enhancement  |                   Status:  open
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by zane):

 * owner:  (none) => zane
 * status:  new => open

Comment:

 I suspect the fix is a simple matter of relaxing the check.

 Could you please comment out this block at `libavcodec/adpcmenc.c:92` and
 see if the generated file works?
 {{{
     if (avctx->codec->id != AV_CODEC_ID_ADPCM_IMA_AMV &&
         (s->block_size & (s->block_size - 1))) {
         av_log(avctx, AV_LOG_ERROR, "block size must be power of 2\n");
         return AVERROR(EINVAL);
     }
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9397#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list