From patchwork Sat Feb 11 12:18:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 2504 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.89.21 with SMTP id n21csp87807vsb; Sat, 11 Feb 2017 04:18:24 -0800 (PST) X-Received: by 10.223.139.12 with SMTP id n12mr11669660wra.176.1486815504667; Sat, 11 Feb 2017 04:18:24 -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 o67si4968181wmo.87.2017.02.11.04.18.24; Sat, 11 Feb 2017 04:18:24 -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 183B2689D9B; Sat, 11 Feb 2017 14:18:18 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe03-3.mx.upcmail.net (vie01a-dmta-pe03-3.mx.upcmail.net [62.179.121.162]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4E81B689A2A for ; Sat, 11 Feb 2017 14:18:12 +0200 (EET) Received: from [172.31.216.44] (helo=vie01a-pemc-psmtp-pe02) by vie01a-dmta-pe03.mx.upcmail.net with esmtp (Exim 4.87) (envelope-from ) id 1ccWd5-0008Vt-N4 for ffmpeg-devel@ffmpeg.org; Sat, 11 Feb 2017 13:18:15 +0100 Received: from [192.168.1.3] ([80.110.106.195]) by vie01a-pemc-psmtp-pe02 with SMTP @ mailcloud.upcmail.net id jQJ81u01i4CyPNw01QJ9iD; Sat, 11 Feb 2017 13:18:09 +0100 X-SourceIP: 80.110.106.195 From: Carl Eugen Hoyos To: FFmpeg development discussions and patches Date: Sat, 11 Feb 2017 13:18:08 +0100 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Message-Id: <201702111318.08121.cehoyos@ag.or.at> Subject: [FFmpeg-devel] [PATCH]lavf/omadec: Remove an unused variable 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi! Attached patch fixes a compilation warning. Please comment, Carl Eugen From bce13fbff1b9394fd3e89c7387f9d96e43934fb0 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sat, 11 Feb 2017 13:17:20 +0100 Subject: [PATCH] lavf/omadec: Remove an unsed variable. --- libavformat/omadec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/omadec.c b/libavformat/omadec.c index 076da78..321e77e 100644 --- a/libavformat/omadec.c +++ b/libavformat/omadec.c @@ -345,7 +345,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) static int aal_read_packet(AVFormatContext *s, AVPacket *pkt) { int64_t pos = avio_tell(s->pb); - int ret, type, pts; + int ret, pts; int packet_size; unsigned tag; @@ -358,7 +358,7 @@ static int aal_read_packet(AVFormatContext *s, AVPacket *pkt) else if (tag != MKBETAG(0,'B','L','K')) return AVERROR_INVALIDDATA; - type = avio_r8(s->pb); + avio_skip(s->pb, 1); packet_size = avio_rb16(s->pb); avio_skip(s->pb, 2); pts = avio_rb32(s->pb);