Browse Source

Issue with bit 33 in PCR

Corrected issue of lost bit in PCR due to bit shift more then 32 bit.
master
Vladimir Yakovlev 13 years ago
committed by Georgi Chorbadzhiyski
parent
commit
d3c573a676
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mpeg/ts.h

+ 1
- 1
mpeg/ts.h View File

@ -250,7 +250,7 @@ static inline bool tsaf_has_pcr(const uint8_t *p_ts)
static inline uint64_t tsaf_get_pcr(const uint8_t *p_ts)
{
return (p_ts[6] << 25) | (p_ts[7] << 17) | (p_ts[8] << 9) | (p_ts[9] << 1) |
return ((uint64_t) p_ts[6] << 25) | (p_ts[7] << 17) | (p_ts[8] << 9) | (p_ts[9] << 1) |
(p_ts[10] >> 7);
}

Loading…
Cancel
Save