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:
authorTomas Härdin <tomas.hardin@codemill.se>2012-01-26 16:21:45 +0400
committerDiego Biurrun <diego@biurrun.de>2012-01-26 18:47:50 +0400
commit62271c4c9a1a4bea6c3de88019429d7f88c847ec (patch)
treec1b01b07bd8843db1c093e443b572f604391efa3 /libavformat/mxfdec.c
parent4fbd3e89e7cdbd0a2cc1b3554a5fb922ae45c862 (diff)
mxfdec: Fix files with essence containers larger than 2 GiB.
For such files, accumulating into an int would cause an overflow. Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavformat/mxfdec.c')
-rw-r--r--libavformat/mxfdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 4089d0f526..bbe862ff6a 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -994,7 +994,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];