From eab5d761bc4c6f610eed2152a982ad665e10eb30 Mon Sep 17 00:00:00 2001 From: Georgi Chorbadzhiyski Date: Mon, 10 Oct 2011 14:46:56 +0300 Subject: [PATCH] mpeg/psi/psi: Set the two reserved bits in psi_set_version(). --- mpeg/psi/psi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpeg/psi/psi.h b/mpeg/psi/psi.h index 67916e8..7d287b2 100644 --- a/mpeg/psi/psi.h +++ b/mpeg/psi/psi.h @@ -215,7 +215,7 @@ static inline uint16_t psi_get_tableidext(const uint8_t *p_section) static inline void psi_set_version(uint8_t *p_section, uint8_t i_version) { - p_section[5] = i_version << 1; + p_section[5] = (i_version << 1) | 0xc0; } static inline uint8_t psi_get_version(const uint8_t *p_section)