Commit 43abd140 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

es: missing check for I/O error

parent 8b566f5e
...@@ -445,8 +445,8 @@ static bool Parse( demux_t *p_demux, block_t **pp_output ) ...@@ -445,8 +445,8 @@ static bool Parse( demux_t *p_demux, block_t **pp_output )
{ {
/* Make sure we are word aligned */ /* Make sure we are word aligned */
int64_t i_pos = stream_Tell( p_demux->s ); int64_t i_pos = stream_Tell( p_demux->s );
if( i_pos % 2 ) if( (i_pos & 1) && stream_Read( p_demux->s, NULL, 1 ) != 1 )
stream_Read( p_demux->s, NULL, 1 ); return true;
} }
p_block_in = stream_Block( p_demux->s, p_sys->i_packet_size ); p_block_in = stream_Block( p_demux->s, p_sys->i_packet_size );
......
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