[vlc-commits] transcode: add some comments

Ilkka Ollakka git at videolan.org
Wed Dec 4 09:01:45 CET 2013


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Fri Nov 22 21:56:33 2013 +0200| [a5d1e69c5cd13af2c50272cbb5eef11fcb65b1d4] | committer: Ilkka Ollakka

transcode: add some comments

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a5d1e69c5cd13af2c50272cbb5eef11fcb65b1d4
---

 modules/stream_out/transcode/transcode.h |    1 +
 modules/stream_out/transcode/video.c     |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/stream_out/transcode/transcode.h b/modules/stream_out/transcode/transcode.h
index 09769c1..75ecc23 100644
--- a/modules/stream_out/transcode/transcode.h
+++ b/modules/stream_out/transcode/transcode.h
@@ -71,6 +71,7 @@ struct sout_stream_sys_t
 
     /* Sync */
     bool            b_master_sync;
+    /* i_master drift is how much audio buffer is ahead of calculated pts */
     mtime_t         i_master_drift;
 };
 
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 15aec9e..e6734b0 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -894,7 +894,7 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_t *id,
             /* This is the pts input should have now with constant frame rate */
             mtime_t i_pts = date_Get( &id->interpolated_pts );
 
-            /* How much input pts has drifted */
+            /* How much video pts is ahead of calculated pts */
             mtime_t i_video_drift = p_pic->date - i_pts;
 
             /* Check that we are having lipsync with input here */



More information about the vlc-commits mailing list