Browse Source

fix psi_get_version

Version is 5 bits instead of 4 bits, as reported by Sebastien (Coexsi).
master
Christophe Massiot 11 years ago
parent
commit
88c3ef38be
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mpeg/psi/psi.h

+ 1
- 1
mpeg/psi/psi.h View File

@ -220,7 +220,7 @@ static inline void psi_set_version(uint8_t *p_section, uint8_t i_version)
static inline uint8_t psi_get_version(const uint8_t *p_section)
{
return (p_section[5] & 0x1e) >> 1;
return (p_section[5] & 0x3e) >> 1;
}
static inline void psi_set_current(uint8_t *p_section)

Loading…
Cancel
Save