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>
This commit is contained in:
Tomas Härdin 2012-01-26 13:21:45 +01:00 committed by Diego Biurrun
parent 4fbd3e89e7
commit 62271c4c9a
1 changed files with 1 additions and 1 deletions

View File

@ -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];