MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / hexchar2int

Function hexchar2int

libavutil/opt.c:358–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358static int hexchar2int(char c) {
359 if (c >= '0' && c <= '9')
360 return c - '0';
361 if (c >= 'a' && c <= 'f')
362 return c - 'a' + 10;
363 if (c >= 'A' && c <= 'F')
364 return c - 'A' + 10;
365 return -1;
366}
367
368static int set_string_binary(void *obj, const AVOption *o, const char *val, uint8_t **dst)
369{

Callers 1

set_string_binaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected