Commit 46ea0ea1 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

VLCMetadataService: Use C++ style casts

parent 24f14034
......@@ -77,10 +77,10 @@ parser::Task::Status VLCMetadataService::run( parser::Task& task )
for ( const auto& track : tracks )
{
auto codec = track.codec();
std::string fcc( (const char*)&codec, 4 );
std::string fcc( reinterpret_cast<const char*>( &codec ), 4 );
if ( track.type() == VLC::MediaTrack::Video )
{
auto fps = (float)track.fpsNum() / (float)track.fpsDen();
auto fps = static_cast<float>( track.fpsNum() ) / static_cast<float>( track.fpsDen() );
task.videoTracks.emplace_back( fcc, fps, track.width(), track.height() );
}
else if ( track.type() == VLC::MediaTrack::Audio )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment