!332 ffmpeg修复问题

Merge pull request !332 from ziyugao/master
This commit is contained in:
openharmony_ci 2024-11-18 03:37:17 +00:00 committed by Gitee
commit 60df9c13c4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3775,7 +3775,7 @@ static int mxf_get_next_track_edit_unit(MXFContext *mxf, MXFTrack *track, int64_
b = track->original_duration;
while (b - a > 1) {
m = (a + b) >> 1;
m = (a + (uint64_t)b) >> 1;
if (mxf_edit_unit_absolute_offset(mxf, t, m, track->edit_rate, NULL, &offset, NULL, 0) < 0)
return -1;
if (offset < current_offset)