Skip to content
Snippets Groups Projects
Commit 238a8ae9 authored by Derek Buitenhuis's avatar Derek Buitenhuis
Browse files

pixdesc: Only check against valid entries when iterating over lists of enums


Some of these enums have gaps in between their values, since they correspond
to the values in various specs, instead of being an incrementing list.

Fixes segfaults when, for example, using the valid API call:

   av_color_primaries_from_name("jecdec-p22");

Signed-off-by: default avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent 8c20ea8e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment