History

avformat/wavenc: use strtoull for UMID conversion

Existing use of strtoll can lead to ERANGE errors leading to incorrect storage of UMID.

Gyan Doshi committed 2 years ago

Commit 7375a6c1 parent b94b3ea1 file · +1 −1Browse files

Unified · Split

libavformat/wavenc.c+1−1
@@ -129,7 +129,7 @@ static void bwf_write_bext_chunk(AVFormatContext *s) · 128 unmodified lines
129 129
130 for (i = 0; i < len/16; i++) {130 for (i = 0; i < len/16; i++) {
131 memcpy(umidpart_str, tmp_tag->value + 2 + (i*16), 16);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 avio_wb64(s->pb, umidpart);133 avio_wb64(s->pb, umidpart);
134 }134 }
135 ffio_fill(s->pb, 0, 64 - i*8);135 ffio_fill(s->pb, 0, 64 - i*8);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t