[vlc-devel] commit: Fixed possible NULL deference in teletext path (CID 265). ( Laurent Aimar )

git version control git at videolan.org
Thu Oct 9 19:37:44 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Oct  9 19:32:47 2008 +0200| [00c97dd6278e21465d644835836c2782c80dc2a5] | committer: Laurent Aimar 

Fixed possible NULL deference in teletext path (CID 265).

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

 src/input/decoder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index c527504..80ed3b3 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -929,7 +929,7 @@ static void DecoderFixTs( decoder_t *p_dec, mtime_t *pi_ts0, mtime_t *pi_ts1,
         if( b_telx )
         {
             *pi_ts0 = DecoderTeletextFixTs( *pi_ts0, i_ts_delay );
-            if( *pi_ts1 && *pi_ts1 <= 0 )
+            if( pi_ts1 && *pi_ts1 <= 0 )
                 *pi_ts1 = *pi_ts0;
         }
     }




More information about the vlc-devel mailing list