[FFmpeg-devel] [PATCH] libavcodec/flacenc: Enable sample rates > 655350 Hz

Derek Buitenhuis derek.buitenhuis at gmail.com
Mon Oct 31 18:58:16 EET 2022


On 10/31/2022 4:09 PM, Martijn van Beurden wrote:
> Also, make use of the full sample rate code table
> ---
>  libavcodec/flacenc.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

It is interesting that the IETF RFC and the Xiph spec disagree on whether this is allowed.

The Xiph spec says:

    Sample rate in Hz. Though 20 bits are available, the maximum sample rate is limited by the
    structure of frame headers to 655350Hz. Also, a value of 0 is invalid.

The RFC just says:

   Sample rate in Hz.

I see your name on the RFC - can you provide some insight here?

- Derek



More information about the ffmpeg-devel mailing list