avformat/wavenc: use strtoull for UMID conversion

Existing use of strtoll can lead to ERANGE errors leading to incorrect
storage of UMID.
release/7.0
Gyan Doshi 1 year ago
parent b94b3eac0e
commit 7375a6ca7b
  1. 2
      libavformat/wavenc.c

@ -129,7 +129,7 @@ static void bwf_write_bext_chunk(AVFormatContext *s)
for (i = 0; i < len/16; i++) {
memcpy(umidpart_str, tmp_tag->value + 2 + (i*16), 16);
umidpart = strtoll(umidpart_str, NULL, 16);
umidpart = strtoull(umidpart_str, NULL, 16);
avio_wb64(s->pb, umidpart);
}
ffio_fill(s->pb, 0, 64 - i*8);

Loading…
Cancel
Save