Commit add114aa authored by Laurent Aimar's avatar Laurent Aimar

Support clpi/mpls avchd version (untested).

parent 982f3e42
...@@ -124,7 +124,8 @@ int bd_clpi_Parse( bd_clpi_t *p_clpi, bs_t *s, int i_id ) ...@@ -124,7 +124,8 @@ int bd_clpi_Parse( bd_clpi_t *p_clpi, bs_t *s, int i_id )
/* */ /* */
if( bs_read( s, 32 ) != 0x48444D56 ) if( bs_read( s, 32 ) != 0x48444D56 )
return VLC_EGENERIC; return VLC_EGENERIC;
if( bs_read( s, 32 ) != 0x30323030 ) const uint32_t i_version = bs_read( s, 32 );
if( i_version != 0x30313030 && i_version != 0x30323030 )
return VLC_EGENERIC; return VLC_EGENERIC;
/* */ /* */
......
...@@ -289,7 +289,8 @@ int bd_mpls_Parse( bd_mpls_t *p_mpls, bs_t *s, int i_id ) ...@@ -289,7 +289,8 @@ int bd_mpls_Parse( bd_mpls_t *p_mpls, bs_t *s, int i_id )
/* */ /* */
if( bs_read( s, 32 ) != 0x4d504c53 ) if( bs_read( s, 32 ) != 0x4d504c53 )
return VLC_EGENERIC; return VLC_EGENERIC;
if( bs_read( s, 32 ) != 0x30323030 ) const uint32_t i_version = bs_read( s, 32 );
if( i_version != 0x30313030 && i_version != 0x30323030 )
return VLC_EGENERIC; return VLC_EGENERIC;
const uint32_t i_play_item_start = bs_read( s, 32 ); const uint32_t i_play_item_start = bs_read( s, 32 );
......
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