Commit 85c03f04 authored by Frédéric Yhuel's avatar Frédéric Yhuel Committed by Jean-Baptiste Kempf

libmp4: small bug fix

When MP4_ReadBoxContainerChildren() returns, one expects the position in
the stream to be that of the next box after the last parsed box.

Without this very patch, if the last parsed box is an "unknown" one,
the position in the stream would be at the begining of that box,
preventing playback of latest Anevia's MS Smooth Streaming live streams,
for example.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e7d5b1bf
......@@ -215,7 +215,10 @@ static int MP4_ReadBoxContainerChildren( stream_t *p_stream,
p_container->p_last = p_box;
if( p_box->i_type == i_last_child )
{
MP4_NextBox( p_stream, p_box );
break;
}
} while( MP4_NextBox( p_stream, p_box ) == 1 );
......
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