Commit f4180b54 authored by Anthony Loiseau's avatar Anthony Loiseau Committed by Rémi Duraffort

demux/ts: remove redundant test (cosmetic)

Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent d8b897c8
...@@ -3852,21 +3852,18 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt ) ...@@ -3852,21 +3852,18 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
} }
else if( p_dr->i_tag == 0x05 ) else if( p_dr->i_tag == 0x05 )
{ {
if( p_dr->i_tag == 0x05 ) /* Registration Descriptor */
if( p_dr->i_length != 4 )
{ {
/* Registration Descriptor */ msg_Warn( p_demux, "invalid Registration Descriptor" );
if( p_dr->i_length != 4 ) }
{ else
msg_Warn( p_demux, "invalid Registration Descriptor" ); {
} msg_Dbg( p_demux, " * descriptor : registration %4.4s", p_dr->p_data );
else if( !memcmp( p_dr->p_data, "HDMV", 4 ) )
{ {
msg_Dbg( p_demux, " * descriptor : registration %4.4s", p_dr->p_data ); /* Blu-Ray */
if( !memcmp( p_dr->p_data, "HDMV", 4 ) ) b_hdmv = true;
{
/* Blu-Ray */
b_hdmv = true;
}
} }
} }
} }
......
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