diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2024-01-29 10:26:06 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2024-02-04 14:44:32 +0530 |
commit | 7375a6ca7b4a4b223a71f85a772c64a34e60eabe (patch) | |
tree | fd150acf4acd667510270f942b6f14a2d0108621 /libavformat | |
parent | b94b3eac0e015a8880d90733c413049e63bfd331 (diff) | |
download | ffmpeg-7375a6ca7b4a4b223a71f85a772c64a34e60eabe.tar.gz |
avformat/wavenc: use strtoull for UMID conversion
Existing use of strtoll can lead to ERANGE errors leading to incorrect
storage of UMID.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/wavenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wavenc.c b/libavformat/wavenc.c index 82acb9ef0f..a41f40b449 100644 --- a/libavformat/wavenc.c +++ b/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); |