[vlc-commits] Avformat: kill parenthesis and variable type warnings
Jean-Baptiste Kempf
git at videolan.org
Sun Jul 29 20:37:46 CEST 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Jul 29 08:53:37 2012 +0200| [c67a6287a4c7464a33de80c726d39ace7e05c0fc] | committer: Jean-Baptiste Kempf
Avformat: kill parenthesis and variable type warnings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c67a6287a4c7464a33de80c726d39ace7e05c0fc
---
modules/demux/avformat/demux.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 21a0bf7..5557bf1 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -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 */
More information about the vlc-commits
mailing list