Commit caedd51e authored by Michael Niedermayer's avatar Michael Niedermayer

mxfdec: fix potential integer overflow in mxf_compute_sample_count()

Fixes CID743442
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7b723ed4
......@@ -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];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment