[vlc-commits] avcodec: remove useless initialization

Steve Lhomme git at videolan.org
Fri Oct 13 00:53:22 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Sep 14 15:01:32 2017 +0200| [bea939de13f986a74eeb6425b1c57f6c207c6863] | committer: Jean-Baptiste Kempf

avcodec: remove useless initialization

The value is never used before it's set to mdate()

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/codec/avcodec/video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 501618fb8f..e1457154b9 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -886,7 +886,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block, bool *error
 
 
     block_t *p_block;
-    mtime_t current_time = VLC_TS_INVALID;
+    mtime_t current_time;
 
     if( !p_context->extradata_size && p_dec->fmt_in.i_extra )
     {



More information about the vlc-commits mailing list