From 535638b55f83ad47e4680883e87b97e69d0847e5 Mon Sep 17 00:00:00 2001 From: Georgi Chorbadzhiyski Date: Tue, 25 Jan 2011 11:20:03 +0000 Subject: mpegtsenc: set reserved bits to 1 in PCR field The reserved bits between PCR base and extension fields must be set to 1. Signed-off-by: Mans Rullgard --- libavformat/mpegtsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index f621646..147faae 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -573,7 +573,7 @@ static uint8_t* write_pcr_bits(uint8_t *buf, int64_t pcr) *buf++ = pcr_high >> 17; *buf++ = pcr_high >> 9; *buf++ = pcr_high >> 1; - *buf++ = ((pcr_high & 1) << 7) | (pcr_low >> 8); + *buf++ = pcr_high << 7 | pcr_low >> 8 | 0x7e; *buf++ = pcr_low; return buf; -- cgit v1.1