X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=tools%2Fqt-faststart.c;h=489c1ab234fb424df4c2b0e6e03844933eee48ab;hb=69ce34c796dd2d595f3312848cf6d0c87506e0d0;hp=c9aa6e82874e3109304d8935029855582e84cf72;hpb=f0b9bd807b15757587254153bdea7b3898985c9c;p=ffmpeg diff --git a/tools/qt-faststart.c b/tools/qt-faststart.c index c9aa6e82874..489c1ab234f 100644 --- a/tools/qt-faststart.c +++ b/tools/qt-faststart.c @@ -229,7 +229,7 @@ int main(int argc, char *argv[]) atom_type = BE_32(&moov_atom[i]); if (atom_type == STCO_ATOM) { printf(" patching stco atom...\n"); - atom_size = BE_32(&moov_atom[i - 4]); + atom_size = (uint32_t)BE_32(&moov_atom[i - 4]); if (i + atom_size - 4 > moov_atom_size) { printf(" bad atom size\n"); goto error_out; @@ -250,7 +250,7 @@ int main(int argc, char *argv[]) i += atom_size - 4; } else if (atom_type == CO64_ATOM) { printf(" patching co64 atom...\n"); - atom_size = BE_32(&moov_atom[i - 4]); + atom_size = (uint32_t)BE_32(&moov_atom[i - 4]); if (i + atom_size - 4 > moov_atom_size) { printf(" bad atom size\n"); goto error_out;