[vlc-commits] schroedinger: replace hardcoded invalid value to VLC_TICK_INVALID

Steve Lhomme git at videolan.org
Wed Sep 19 11:58:19 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed May  9 11:13:15 2018 +0200| [754322ccab87da83bd7cd1e32d015d03004f01c5] | committer: Steve Lhomme

schroedinger: replace hardcoded invalid value to VLC_TICK_INVALID

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

 modules/codec/schroedinger.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/schroedinger.c b/modules/codec/schroedinger.c
index 347ca41bd5..3ad83e8e9f 100644
--- a/modules/codec/schroedinger.c
+++ b/modules/codec/schroedinger.c
@@ -994,7 +994,7 @@ static vlc_tick_t GetPicturePTS( encoder_t *p_enc, uint32_t u_pnum )
     }
 
     msg_Err( p_enc, "Could not retrieve PTS for picture %u", u_pnum );
-    return 0;
+    return VLC_TICK_INVALID;
 }
 
 static inline bool SchroSetEnum( const encoder_t *p_enc, int i_list_size, const char *list[],
@@ -1575,7 +1575,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pic )
             if( ReadDiracPictureNumber( &u_pic_num, p_block ) ) {
                 block_t *p_dts_block = block_FifoGet( p_sys->p_dts_fifo );
                 p_block->i_dts = p_dts_block->i_dts;
-                   p_block->i_pts = GetPicturePTS( p_enc, u_pic_num );
+                p_block->i_pts = GetPicturePTS( p_enc, u_pic_num );
                 block_Release( p_dts_block );
                 block_ChainAppend( &p_output_chain, p_block );
             } else {



More information about the vlc-commits mailing list