Commit 17d0021c authored by Francois Cartegnie's avatar Francois Cartegnie

demux: ts: fix invalid cast to decoded descriptor

parent dc1384bb
...@@ -311,20 +311,23 @@ static void ATSC_VCT_Callback( void *p_cb_basepid, dvbpsi_atsc_vct_t* p_vct ) ...@@ -311,20 +311,23 @@ static void ATSC_VCT_Callback( void *p_cb_basepid, dvbpsi_atsc_vct_t* p_vct )
{ {
char *psz_name = NULL; char *psz_name = NULL;
for( const dvbpsi_descriptor_t *p_dr = p_channel->p_first_descriptor; for( dvbpsi_descriptor_t *p_dr = p_channel->p_first_descriptor;
p_dr; p_dr = p_dr->p_next ) p_dr; p_dr = p_dr->p_next )
{ {
switch( p_dr->i_tag ) switch( p_dr->i_tag )
{ {
case ATSC_DESCRIPTOR_EXTENDED_CHANNEL_NAME: case ATSC_DESCRIPTOR_EXTENDED_CHANNEL_NAME:
{ {
const dvbpsi_extended_channel_name_dr_t *p_ecndr = dvbpsi_extended_channel_name_dr_t *p_ecndr =
(const dvbpsi_extended_channel_name_dr_t *)p_dr; dvbpsi_ExtendedChannelNameDr( p_dr );
if( unlikely(psz_name) ) if( p_ecndr )
free( psz_name ); {
psz_name = atsc_a65_Decode_multiple_string( p_ctx->p_a65, if( unlikely(psz_name) )
p_ecndr->i_long_channel_name, free( psz_name );
p_ecndr->i_long_channel_name_length ); psz_name = atsc_a65_Decode_multiple_string( p_ctx->p_a65,
p_ecndr->i_long_channel_name,
p_ecndr->i_long_channel_name_length );
}
} break; } break;
......
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