[FFmpeg-devel] [PATCH v3] riscv: Tweak names of cpu flags, print flags in libavutil/tests/cpu

Martin Storsjö martin at martin.st
Sun Dec 17 23:58:45 EET 2023


On Sun, 17 Dec 2023, James Almer wrote:

> On 12/17/2023 9:36 AM, Martin Storsjö wrote:
>> The names of the cpu flags, when parsed from a string with
>> av_parse_cpu_caps, are parsed by the libavutil eval functions. These
>> interpret dashes as subtractions. Therefore, these previous cpu flag
>> names haven't been possible to set.
>> 
>> Use the official names for these extensions, as the previous ad-hoc
>> names wasn't parseable.
>> 
>> libavutil/tests/cpu tests that the cpu flags can be set, and prints
>> the detected flags.
>> ---
>> v3: Fixed the name zve64d. Kept the cpuflags names all lowercase for
>> consistency with the other cpuflags.
>> ---
>>   libavutil/cpu.c       | 12 ++++++------
>>   libavutil/tests/cpu.c | 10 ++++++++++
>>   2 files changed, 16 insertions(+), 6 deletions(-)
>
> LGMT with a minor bump, as this changes how av_parse_cpu_caps() parses 
> strings.

Thanks, pushed with a minor bump.

// Martin


More information about the ffmpeg-devel mailing list