From 18fb38fb9ea7e2d5997c096fccfcd4cb43f70294 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Storsj=C3=B6?= Date: Mon, 7 Jul 2014 22:07:49 +0300 Subject: [PATCH] mov: Remove a variable that is set but never used MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This silences a warning with gcc. Signed-off-by: Martin Storsjö --- libavformat/mov.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 4a2d265..cc2dc87 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -213,7 +213,7 @@ static int mov_metadata_loci(MOVContext *c, AVIOContext *pb, unsigned len) char language[4] = { 0 }; char buf[100]; uint16_t langcode = 0; - double longitude, latitude, altitude; + double longitude, latitude; const char *key = "location"; if (len < 4 + 2 + 1 + 1 + 4 + 4 + 4) @@ -234,7 +234,6 @@ static int mov_metadata_loci(MOVContext *c, AVIOContext *pb, unsigned len) return AVERROR_INVALIDDATA; longitude = ((int32_t) avio_rb32(pb)) / (float) (1 << 16); latitude = ((int32_t) avio_rb32(pb)) / (float) (1 << 16); - altitude = ((int32_t) avio_rb32(pb)) / (float) (1 << 16); // Try to output in the same format as the ?xyz field snprintf(buf, sizeof(buf), "%+08.4f%+09.4f/", latitude, longitude); -- 2.7.4