OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fbd3e8
)
mxfdec: Fix files with essence containers larger than 2 GiB.
author
Tomas Härdin
<tomas.hardin@codemill.se>
Thu, 26 Jan 2012 12:21:45 +0000
(13:21 +0100)
committer
Diego Biurrun
<diego@biurrun.de>
Thu, 26 Jan 2012 14:47:50 +0000
(15:47 +0100)
For such files, accumulating into an int would cause an overflow.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavformat/mxfdec.c
patch
|
blob
|
history
diff --git
a/libavformat/mxfdec.c
b/libavformat/mxfdec.c
index
4089d0f
..
bbe862f
100644
(file)
--- 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;
+ int
64_t
offset_temp = 0;
for (i = 0; i < index_table->nb_segments; i++) {
MXFIndexTableSegment *s = index_table->segments[i];