| 566 | } |
| 567 | |
| 568 | void avtext_print_data_hash(AVTextFormatContext *tctx, const char *key, |
| 569 | const uint8_t *data, int size) |
| 570 | { |
| 571 | char buf[AV_HASH_MAX_SIZE * 2 + 64] = { 0 }; |
| 572 | int len; |
| 573 | |
| 574 | if (!tctx->hash) |
| 575 | return; |
| 576 | |
| 577 | av_hash_init(tctx->hash); |
| 578 | av_hash_update(tctx->hash, data, size); |
| 579 | len = snprintf(buf, sizeof(buf), "%s:", av_hash_get_name(tctx->hash)); |
| 580 | av_hash_final_hex(tctx->hash, (uint8_t *)&buf[len], (int)sizeof(buf) - len); |
| 581 | avtext_print_string(tctx, key, buf, 0); |
| 582 | } |
| 583 | |
| 584 | static const char *writercontext_get_writer_name(void *p) |
| 585 | { |
no test coverage detected