From patchwork Sun Feb 12 23:43:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Steven X-Patchwork-Id: 2530 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.89.21 with SMTP id n21csp657620vsb; Sun, 12 Feb 2017 15:44:46 -0800 (PST) X-Received: by 10.223.175.49 with SMTP id z46mr19691023wrc.84.1486943086876; Sun, 12 Feb 2017 15:44:46 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id p197si3774330wmg.0.2017.02.12.15.44.46; Sun, 12 Feb 2017 15:44:46 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 814E1689DE0; Mon, 13 Feb 2017 01:44:39 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbg340.qq.com (smtpbg340.qq.com [14.17.44.35]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E01B8680AA0 for ; Mon, 13 Feb 2017 01:44:31 +0200 (EET) X-QQ-mid: bizesmtp2t1486943034t4fkfegis Received: from localhost (unknown [47.90.47.25]) by esmtp4.qq.com (ESMTP) with id ; Mon, 13 Feb 2017 07:43:54 +0800 (CST) X-QQ-SSF: 01100000002000F0F820B00A0000000 X-QQ-FEAT: tG8qwhkDsFzF98kQjONz2YzEyjuMmGH7Me23vZCL7KQeEvUtkd2Z/c6818t/L VAnMSIM/buPQOGU7HwKUBbjJaDbUUW0JpVRiOQC7an7jR7yeynEXCT9QOygI+Lg+TZw/h/D UtuTWT5btqjPhlPqJnm04MUMslGvOI0KAWxJ0sNhr8WZckdS+7AGZ44h1ArAsatMewkGHio rwGR+yiPVHx0cs64YjUYilWR/y+f2L0dJ9licPpFnxBEj75PeGIA22uYD+T+uEhkFYj0is+ /igQ== X-QQ-GoodBg: 0 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Mon, 13 Feb 2017 07:43:53 +0800 Message-Id: <20170212234353.32433-1-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.10.1.382.ga23ca1b.dirty X-QQ-SENDSIZE: 520 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH] avcodec/fmvc: find Uninitialized variables for Coverity X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Steven Liu MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Initialized variables opcode to indent Signed-off-by: Steven Liu --- libavcodec/fmvc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/fmvc.c b/libavcodec/fmvc.c index 54bb6f9..5e54d33 100644 --- a/libavcodec/fmvc.c +++ b/libavcodec/fmvc.c @@ -53,7 +53,7 @@ typedef struct FMVCContext { static int decode_type2(GetByteContext *gb, PutByteContext *pb) { - unsigned repeat = 0, first = 1, opcode; + unsigned repeat = 0, first = 1, opcode = 0; int i, len, pos; while (bytestream2_get_bytes_left(gb) > 0) {