| 356 | } |
| 357 | |
| 358 | static 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 | |
| 368 | static int set_string_binary(void *obj, const AVOption *o, const char *val, uint8_t **dst) |
| 369 | { |