summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-07-07 22:07:49 +0300
committerMartin Storsjö <martin@martin.st>2014-07-08 21:14:43 +0300
commit18fb38fb9ea7e2d5997c096fccfcd4cb43f70294 (patch)
treeff994373396fb6316e186ef5b9bce7041313c432 /libavformat/mov.c
parentcf280ed004b5c618560f8f43d14ff264bd1e4c3d (diff)
mov: Remove a variable that is set but never used
This silences a warning with gcc. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 4a2d26543c..cc2dc87f33 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);