Fix for [#26652] "Audio Muted" in Time Line Editor is not working
[blender-staging.git] / intern / audaspace / ffmpeg / AUD_FFMPEGReader.cpp
index 078a10a68cbd8e49898042b2d10eb397d670da48..0dc525b0e5a1268fb58256ab0687231d49d77b23 100644 (file)
@@ -253,7 +253,7 @@ void AUD_FFMPEGReader::seek(int position)
        if(position >= 0)
        {
                uint64_t st_time = m_formatCtx->start_time;
-               uint64_t seek_pos = position * AV_TIME_BASE / m_specs.rate;
+               uint64_t seek_pos = ((uint64_t)position) * ((uint64_t)AV_TIME_BASE) / ((uint64_t)m_specs.rate);
 
                if (seek_pos < 0) {
                        seek_pos = 0;