[vlc-commits] libmpeg2: set the garbage pic explictly with VLC_TICK_INVALID

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed May  9 14:05:22 2018 +0200| [f4d3db0f22c7ab5f9968a8fe34f6904dd9fae564] | committer: Steve Lhomme

libmpeg2: set the garbage pic explictly with VLC_TICK_INVALID

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

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

diff --git a/modules/codec/libmpeg2.c b/modules/codec/libmpeg2.c
index b75c5e276f..6d72a0ad36 100644
--- a/modules/codec/libmpeg2.c
+++ b/modules/codec/libmpeg2.c
@@ -558,8 +558,10 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
                 {
                     p_pic->date = decoder_SynchroDate( p_sys->p_synchro );
                     if( p_sys->b_garbage_pic )
-                        p_pic->date = 0; /* ??? */
-                    p_sys->b_garbage_pic = false;
+                    {
+                        p_pic->date = VLC_TICK_INVALID; /* ??? */
+                        p_sys->b_garbage_pic = false;
+                    }
                 }
             }
 



More information about the vlc-commits mailing list