mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-03 21:42:09 +00:00
avformat/wavenc: use strtoull for UMID conversion
Existing use of strtoll can lead to ERANGE errors leading to incorrect storage of UMID.
This commit is contained in:
parent
b94b3eac0e
commit
7375a6ca7b
@ -129,7 +129,7 @@ static void bwf_write_bext_chunk(AVFormatContext *s)
|
|||||||
|
|
||||||
for (i = 0; i < len/16; i++) {
|
for (i = 0; i < len/16; i++) {
|
||||||
memcpy(umidpart_str, tmp_tag->value + 2 + (i*16), 16);
|
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);
|
avio_wb64(s->pb, umidpart);
|
||||||
}
|
}
|
||||||
ffio_fill(s->pb, 0, 64 - i*8);
|
ffio_fill(s->pb, 0, 64 - i*8);
|
||||||
|
Loading…
Reference in New Issue
Block a user