#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
_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to