[FFmpeg-cvslog] mxfdec: Fix files with essence containers larger than 2 GiB.

Tomas Härdin git at videolan.org
Fri Jan 27 02:26:08 CET 2012


ffmpeg | branch: master | Tomas Härdin <tomas.hardin at codemill.se> | Thu Jan 26 13:21:45 2012 +0100| [62271c4c9a1a4bea6c3de88019429d7f88c847ec] | committer: Diego Biurrun

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 at biurrun.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=62271c4c9a1a4bea6c3de88019429d7f88c847ec
---

 libavformat/mxfdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 4089d0f..bbe862f 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];



More information about the ffmpeg-cvslog mailing list