ref: c79665d0ada48bc0253167d403e7f91a5e74d11d
parent: 1b1e40c0b299fa0da7bcf9b2e7878f9de7460009
author: James Zern <jzern@google.com>
date: Thu Aug 4 19:13:17 EDT 2016
webmdec: quiet -Wshorten-64-to-32 warning track->GetNumber() will fit in an int in well-behaved files Change-Id: I344a7dd05d04daf3df2d67358ea69f8014a03a5b
--- a/webmdec.cc
+++ b/webmdec.cc
@@ -89,7 +89,7 @@
const mkvparser::Track *const track = tracks->GetTrackByIndex(i);
if (track->GetType() == mkvparser::Track::kVideo) {
video_track = static_cast<const mkvparser::VideoTrack *>(track);
- webm_ctx->video_track_index = track->GetNumber();
+ webm_ctx->video_track_index = static_cast<int>(track->GetNumber());
break;
}
}