From 4a0d349edab1a327f1e694c5b6c17eb2a7df85b4 Mon Sep 17 00:00:00 2001 From: Kieran Kunhya Date: Sat, 18 Feb 2012 23:50:19 +0000 Subject: [PATCH] Clarify why we write a PCR at the beginning of every video PES --- libmpegts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libmpegts.c b/libmpegts.c index 7091612..5eb4018 100644 --- a/libmpegts.c +++ b/libmpegts.c @@ -1702,7 +1702,8 @@ int ts_write_frames( ts_writer_t *w, ts_frame_t *frames, int num_frames, uint8_t #endif bs_init( &q, temp, 150 ); - /* It is good practice to write a pcr at the beginning of a video payload */ + /* It is good practice to write a pcr at the beginning of a video payload, and allows the packet to be + * a random access indicator if applicable */ if( program->pcr_stream == stream && pes_start ) write_pcr = 1; else if( check_pcr( w, program ) )