Commit c67a6287 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Avformat: kill parenthesis and variable type warnings

parent e2381bf9
......@@ -143,7 +143,7 @@ int OpenDemux( vlc_object_t *p_this )
char *psz_format = var_InheritString( p_this, "avformat-format" );
if( psz_format )
{
if( fmt = av_find_input_format(psz_format) )
if( (fmt = av_find_input_format(psz_format)) )
msg_Dbg( p_demux, "forcing format: %s", fmt->name );
free( psz_format );
}
......@@ -670,7 +670,7 @@ static int Demux( demux_t *p_demux )
p_stream->time_base.num /
p_stream->time_base.den;
if( pkt.dts != AV_NOPTS_VALUE && pkt.dts == pkt.pts &&
if( pkt.dts != (int64_t)AV_NOPTS_VALUE && pkt.dts == pkt.pts &&
p_stream->codec->codec_type == AVMEDIA_TYPE_VIDEO )
{
/* Add here notoriously bugged file formats/samples regarding PTS */
......
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