mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/wavenc: fix string length variable types
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d0b294286c
commit
ecb4ae7879
@ -92,7 +92,7 @@ typedef struct WAVMuxContext {
|
||||
static inline void bwf_write_bext_string(AVFormatContext *s, const char *key, int maxlen)
|
||||
{
|
||||
AVDictionaryEntry *tag;
|
||||
int len = 0;
|
||||
size_t len = 0;
|
||||
|
||||
if (tag = av_dict_get(s->metadata, key, NULL, 0)) {
|
||||
len = strlen(tag->value);
|
||||
@ -122,9 +122,9 @@ static void bwf_write_bext_chunk(AVFormatContext *s)
|
||||
|
||||
if (tmp_tag = av_dict_get(s->metadata, "umid", NULL, 0)) {
|
||||
unsigned char umidpart_str[17] = {0};
|
||||
int i;
|
||||
int64_t i;
|
||||
uint64_t umidpart;
|
||||
int len = strlen(tmp_tag->value+2);
|
||||
size_t len = strlen(tmp_tag->value+2);
|
||||
|
||||
for (i = 0; i < len/16; i++) {
|
||||
memcpy(umidpart_str, tmp_tag->value + 2 + (i*16), 16);
|
||||
|
Loading…
Reference in New Issue
Block a user