Existing use of strtoll can lead to ERANGE errors leading to incorrect storage of UMID.
Unified · Split
| @@ -129,7 +129,7 @@ static void bwf_write_bext_chunk(AVFormatContext *s) · 128 unmodified lines | ||
| 129 | 129 | |
| 130 | 130 | for (i = 0; i < len/16; i++) { |
| 131 | 131 | memcpy(umidpart_str, tmp_tag->value + 2 + (i*16), 16); |
| 132 | − umidpart = strtoll(umidpart_str, NULL, 16); | |
| 132 | + umidpart = strtoull(umidpart_str, NULL, 16); | |
| 133 | 133 | avio_wb64(s->pb, umidpart); |
| 134 | 134 | } |
| 135 | 135 | ffio_fill(s->pb, 0, 64 - i*8); |