Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mpegts input: cosmetic code change
  • Loading branch information
perexg committed Feb 9, 2016
1 parent aadf893 commit d8cba39
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/input/mpegts/mpegts_input.c
Expand Up @@ -1004,14 +1004,14 @@ get_pcr ( const uint8_t *tsb, int64_t *rpcr )
return 0;

if ((tsb[3] & 0x20) == 0 ||
tsb[4] <= 5 ||
tsb[4] <= 5 ||
(tsb[5] & 0x10) == 0)
return 0;

pcr = (uint64_t)tsb[6] << 25;
pcr |= (uint64_t)tsb[7] << 17;
pcr |= (uint64_t)tsb[8] << 9;
pcr |= (uint64_t)tsb[9] << 1;
pcr = (uint64_t)tsb[6] << 25;
pcr |= (uint64_t)tsb[7] << 17;
pcr |= (uint64_t)tsb[8] << 9;
pcr |= (uint64_t)tsb[9] << 1;
pcr |= ((uint64_t)tsb[10] >> 7) & 0x01;
*rpcr = pcr;
return 1;
Expand Down

0 comments on commit d8cba39

Please sign in to comment.