[FFmpeg-devel] [PATCH v2 7/9] avformat/pcm: factorize and improve determining the default packet size

Marton Balint cus at passwd.hu
Tue Mar 12 23:31:48 EET 2024



On Fri, 8 Mar 2024, Marton Balint wrote:

> - Remove the 1024 cap on the number of samples, for high sample rate audio it
>  was suboptimal, calculate the low neighbour power of two for the number of
>  samples (audio blocks) instead.
> - Make the function work correctly for non-pcm codecs by using
>  av_get_audio_frame_duration2() to esimate the packet duration for a given
>  size
> - Fall back to 4096/block_align if av_get_audio_frame_duration2() is not
>  supported

Will apply this series soon.

Regards,
Marton


More information about the ffmpeg-devel mailing list