diff --git a/webmdec.cc b/webmdec.cc index 8f7797038..ed4bd700d 100644 --- a/webmdec.cc +++ b/webmdec.cc @@ -89,7 +89,7 @@ int file_is_webm(struct WebmInputContext *webm_ctx, const mkvparser::Track *const track = tracks->GetTrackByIndex(i); if (track->GetType() == mkvparser::Track::kVideo) { video_track = static_cast(track); - webm_ctx->video_track_index = track->GetNumber(); + webm_ctx->video_track_index = static_cast(track->GetNumber()); break; } }