[FFmpeg-devel] [PATCH 2/9] avcodec/get_bits: add get_leb()

James Almer jamrial at gmail.com
Sun Nov 26 15:43:06 EET 2023


On 11/26/2023 10:40 AM, Leo Izen wrote:
> On 11/25/23 20:28, James Almer wrote:
>> Signed-off-by: James Almer <jamrial at gmail.com>
>> ---
>>   libavcodec/bitstream.h          |  2 ++
>>   libavcodec/bitstream_template.h | 22 ++++++++++++++++++++++
>>   libavcodec/get_bits.h           | 23 +++++++++++++++++++++++
>>   3 files changed, 47 insertions(+)
>>
> 
> Out of curiosity, why do this (and the avio version) have to be global? 
> What are they used for other than the iamf demuxer? Would it make sense 
> to have a static inline read_leb function defined in iamf.c?

They can be used by the av1 modules too, and potentially other formats 
in the future using the OBU encapsulation.


More information about the ffmpeg-devel mailing list