Commit e41757af authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

mkv: minor clean-up + c-style casts => c++ casts

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 86e13b31
......@@ -796,11 +796,10 @@ void matroska_segment_c::ParseInfo( KaxInfo *info )
}
E_CASE( KaxDateUTC, date )
{
time_t i_date;
struct tm tmres;
char buffer[25];
time_t i_date = date.GetEpochDate();
i_date = date.GetEpochDate();
if( gmtime_r( &i_date, &tmres ) &&
strftime( buffer, sizeof(buffer), "%a %b %d %H:%M:%S %Y",
&tmres ) )
......@@ -832,14 +831,14 @@ void matroska_segment_c::ParseInfo( KaxInfo *info )
E_CASE( KaxChapterTranslateEditionUID, uid )
{
chapter_translation_c *p_translate = new chapter_translation_c();
p_translate->editions.push_back( uint64( uid ) );
p_translate->editions.push_back( static_cast<uint64>( uid ) );
vars.obj->translations.push_back( p_translate );
}
E_CASE( KaxChapterTranslateCodec, codec_id )
{
chapter_translation_c *p_translate = new chapter_translation_c();
p_translate->codec_id = uint32( codec_id );
p_translate->codec_id = static_cast<uint32>( codec_id );
vars.obj->translations.push_back( p_translate );
}
......
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