You are not logged in.

#1 09-21-2014 23:10:57

gerd1028
Membre
Registered: 05-09-2014
Posts: 35

fix a sound-issue

Hi,

in cBaseMediaFile.cpp are the following lines:

// If position >= end of file : disable audio (only if IsComputedAudioDuration)
    double dPosition=double(Position)/AV_TIME_BASE;
    if ((dPosition>0)&&(dPosition>=dEndFile+1000)&&(IsComputedAudioDuration)) {
        AudioContext.AudioStream=NULL; // Disable audio


imho the addition of 1000 seconds to dEndFile is an error here and should be removed.

regards
gerd

Offline

Board footer