[vlc-commits] commit: x264.c: compile fix (Ilkka Ollakka )

git at videolan.org git at videolan.org
Wed Mar 24 20:08:41 CET 2010


vlc/vlc-1.0 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Mar 24 21:08:25 2010 +0200| [0d6c8bab625aa1c3c135a5636eb5247afabaa1b4] | committer: Ilkka Ollakka 

x264.c: compile fix

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

 modules/codec/x264.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 156a97c..234a84c 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -1587,7 +1587,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict )
      * but vlc doesn't handle if dts is < VLC_TS_0 so we
      * use that offset to get it right for vlc.
      */
-    if( p_sys->i_initial_delay == 0 && pic.i_dts < VLC_TS_0 )
+    if( p_sys->i_initial_delay == 0 && pic.i_dts <= 0 )
     {
         p_sys->i_initial_delay = -1* pic.i_dts;
         msg_Dbg( p_enc, "Initial delay is set to %d", p_sys->i_initial_delay );



More information about the vlc-commits mailing list