Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/qt-faststart.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/qt-faststart.c b/tools/qt-faststart.c
index 7834f48647..5e1288b5f8 100644
--- a/tools/qt-faststart.c
+++ b/tools/qt-faststart.c
@@ -240,8 +240,8 @@ int main(int argc, char *argv[])
goto error_out;
}
offset_count = BE_32(&moov_atom[i + 8]);
- if (i + 12LL + offset_count * 4LL > moov_atom_size) {
- printf(" bad atom size\n");
+ if (i + 12 + offset_count * UINT64_C(4) > moov_atom_size) {
+ printf(" bad atom size/element count\n");
goto error_out;
}
for (j = 0; j < offset_count; j++) {
@@ -261,8 +261,8 @@ int main(int argc, char *argv[])
goto error_out;
}
offset_count = BE_32(&moov_atom[i + 8]);
- if (i + 12LL + offset_count * 8LL > moov_atom_size) {
- printf(" bad atom size\n");
+ if (i + 12 + offset_count * UINT64_C(8) > moov_atom_size) {
+ printf(" bad atom size/element count\n");
goto error_out;
}
for (j = 0; j < offset_count; j++) {