Commit 7f4fe8ff authored by Petri Hintukainen's avatar Petri Hintukainen Committed by Jean-Baptiste Kempf

mpeg-ts: fix comparing unsigned and signed integers

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent bd795dd2
......@@ -2514,7 +2514,8 @@ static block_t* ReadTSPacket( demux_t *p_demux )
/* Get a new TS packet */
if( !( p_pkt = stream_Block( p_sys->stream, p_sys->i_packet_size ) ) )
{
if( stream_Tell( p_sys->stream ) == stream_Size( p_sys->stream ) )
int64_t size = stream_Size( p_sys->stream );
if( size >= 0 && (uint64_t)size == stream_Tell( p_sys->stream ) )
msg_Dbg( p_demux, "EOF at %"PRId64, stream_Tell( p_sys->stream ) );
else
msg_Dbg( p_demux, "Can't read TS packet at %"PRId64, stream_Tell(p_sys->stream) );
......
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