diff options
author | Tomas Härdin <tomas.hardin@codemill.se> | 2012-01-24 12:24:24 +0100 |
---|---|---|
committer | Tomas Härdin <tomas.hardin@codemill.se> | 2012-01-24 12:42:32 +0100 |
commit | b720915be103cc8b062405bf9f7765ce3ad679d1 (patch) | |
tree | 81b94b8ecee59deab6ed8819782901aef24b5ed1 | |
parent | d8531a1c1891130ea65e8023c8957bc8e1c95c0d (diff) | |
download | ffmpeg-b720915be103cc8b062405bf9f7765ce3ad679d1.tar.gz |
mxfdec: Fix files > 2 GiB
Accumulating into an int would cause overflow for files with essence
containers larger than 2 GiB.
-rw-r--r-- | libavformat/mxfdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 9acbb7bb8a..cb38e5caaf 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -992,7 +992,7 @@ static int64_t mxf_essence_container_end(MXFContext *mxf, int body_sid) static int mxf_edit_unit_absolute_offset(MXFContext *mxf, MXFIndexTable *index_table, int64_t edit_unit, int64_t *edit_unit_out, int64_t *offset_out, int nag) { int i; - int offset_temp = 0; + int64_t offset_temp = 0; for (i = 0; i < index_table->nb_segments; i++) { MXFIndexTableSegment *s = index_table->segments[i]; |