[FFmpeg-trac] #9911(ffmpeg:new): block align not set

FFmpeg trac at avcodec.org
Thu Sep 8 09:07:25 EEST 2022


#9911: block align not set
---------------------------------+--------------------------------------
             Reporter:  Mia Sia  |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  ffmpeg   |                  Version:  git-master
             Keywords:  AIFF     |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+--------------------------------------
 Summary of the bug:

 libavcodwc/utils.c
 In "av_get_exact_bits_per_sample" function,

 case AV_CODEC_ID_ADPCM_G722
 ...
     return 4;

 and

 libavformat/aiffdec.c
 In "get_aiff_header" function,

 if (!par->block_align)
     par->block_align = (av_get_bits_per_sample(par->codec_id) * channels)
 >> 3

 which output 0, causes

 ffmpeg -i input.wav -c:a g722 output.afc
 [aiff @ 0x14af06f90] block align not set
 Could not write header for output file #0 (incorrect codec parameters ?):
 Invalid argument
 Error initializing output stream 0:0 --
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9911>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list