Browse Source

mxfdec: fix potential integer overflow in mxf_compute_sample_count()

Fixes CID743442
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
caedd51e56
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mxfdec.c

+ 1
- 1
libavformat/mxfdec.c View File

@@ -2040,7 +2040,7 @@ static int mxf_compute_sample_count(MXFContext *mxf, int stream_index, uint64_t

av_assert2(size);

*sample_count = (mxf->current_edit_unit / size) * total;
*sample_count = (mxf->current_edit_unit / size) * (uint64_t)total;
for (i = 0; i < mxf->current_edit_unit % size; i++) {
*sample_count += spf->samples_per_frame[i];
}


Loading…
Cancel
Save