Commit a9bdfc7cb998ea5e645a598b704b61d1ce4b7081
1 parent
bf6e1b73
Exists in
master
and in
1 other branch
Corrige metodo para calcular PTS
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
extratorSRT/src/extratorSRT.cpp
| @@ -82,5 +82,5 @@ void ExtratorSRT::notifyPCRBase(uint64_t pcrbase){ | @@ -82,5 +82,5 @@ void ExtratorSRT::notifyPCRBase(uint64_t pcrbase){ | ||
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | uint64_t ExtratorSRT::calcula_pts(double msec) { | 84 | uint64_t ExtratorSRT::calcula_pts(double msec) { |
| 85 | - return (uint64_t)(pcr_base + ((msec/1000) * 100000.0)); | 85 | + return (uint64_t)(pcr_base + ((msec/1000) * 90000.0)); |
| 86 | } | 86 | } |
recognize/src/recognize.cpp
| @@ -413,7 +413,7 @@ void Recognize::notifyPCRBase(uint64_t pcrbase){ | @@ -413,7 +413,7 @@ void Recognize::notifyPCRBase(uint64_t pcrbase){ | ||
| 413 | } | 413 | } |
| 414 | 414 | ||
| 415 | int64_t Recognize::calcula_pts(double msec) { | 415 | int64_t Recognize::calcula_pts(double msec) { |
| 416 | - return (int64_t)(pcr_base + ((msec/1000) * 100000.0)); | 416 | + return (int64_t)(pcr_base + ((msec/1000) * 90000.0)); |
| 417 | } | 417 | } |
| 418 | 418 | ||
| 419 | int64_t Recognize::convert_pts(string pts){ | 419 | int64_t Recognize::convert_pts(string pts){ |