[vlc-devel] [PATCH] avcodec: remove useless initialization

Steve Lhomme robux4 at videolabs.io
Thu Sep 14 15:01:32 CEST 2017


The value is never used before it's set to mdate()
---
 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 022fc0d884..3bd4d10cb1 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -879,7 +879,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 )
     {
-- 
2.12.1



More information about the vlc-devel mailing list