Project

General

Profile

Bug #1017 » nulltimeScale.patch

Mathieu Clabaut, 04 Jan 2015 10:13

View differences:

src/quicktimevideo.cpp Sat Jan 03 10:18:36 2015 +0000 → src/quicktimevideo.cpp Sun Jan 04 11:08:25 2015 +0100
1515 1515
                break;
1516 1516
            case TrackDuration:
1517 1517
                if(currentStream_ == Video)
1518
                    xmpData_["Xmp.video.TrackDuration"] = returnBufValue(buf)/timeScale_;
1518
                    xmpData_["Xmp.video.TrackDuration"] = timeScale_ ? returnBufValue(buf)/timeScale_ : 0;
1519 1519
                else if(currentStream_ == Audio)
1520
                    xmpData_["Xmp.audio.TrackDuration"] = returnBufValue(buf)/timeScale_;
1520
                    xmpData_["Xmp.audio.TrackDuration"] = timeScale_ ? returnBufValue(buf)/timeScale_ : 0;
1521 1521
                break;
1522 1522
            case TrackLayer:
1523 1523
                if(currentStream_ == Video)
    (1-1/1)