Lines 1459-1467
Link Here
|
1459 |
break; |
1459 |
break; |
1460 |
case MediaDuration: |
1460 |
case MediaDuration: |
1461 |
if(currentStream_ == Video) |
1461 |
if(currentStream_ == Video) |
1462 |
xmpData_["Xmp.video.MediaDuration"] = returnBufValue(buf)/time_scale; |
1462 |
xmpData_["Xmp.video.MediaDuration"] = time_scale ? returnBufValue(buf)/time_scale : 0 ; |
1463 |
else if (currentStream_ == Audio) |
1463 |
else if (currentStream_ == Audio) |
1464 |
xmpData_["Xmp.audio.MediaDuration"] = returnBufValue(buf)/time_scale; |
1464 |
xmpData_["Xmp.audio.MediaDuration"] = time_scale ? returnBufValue(buf)/time_scale : 0; |
1465 |
break; |
1465 |
break; |
1466 |
case MediaLanguageCode: |
1466 |
case MediaLanguageCode: |
1467 |
if(currentStream_ == Video) |
1467 |
if(currentStream_ == Video) |
Lines 1515-1523
Link Here
|
1515 |
break; |
1515 |
break; |
1516 |
case TrackDuration: |
1516 |
case TrackDuration: |
1517 |
if(currentStream_ == Video) |
1517 |
if(currentStream_ == Video) |
1518 |
xmpData_["Xmp.video.TrackDuration"] = returnBufValue(buf)/timeScale_; |
1518 |
xmpData_["Xmp.video.TrackDuration"] = timeScale_ ? returnBufValue(buf)/timeScale_ : 0; |
1519 |
else if(currentStream_ == Audio) |
1519 |
else if(currentStream_ == Audio) |
1520 |
xmpData_["Xmp.audio.TrackDuration"] = returnBufValue(buf)/timeScale_; |
1520 |
xmpData_["Xmp.audio.TrackDuration"] = timeScale_ ? returnBufValue(buf)/timeScale_ : 0; |
1521 |
break; |
1521 |
break; |
1522 |
case TrackLayer: |
1522 |
case TrackLayer: |
1523 |
if(currentStream_ == Video) |
1523 |
if(currentStream_ == Video) |