vlc | branch: master | Francois Cartegnie <[email protected]> | Tue Dec 20 14:56:37 2016 +0100| [499813ab39dc40ecfe110767c796280ef90ca710] | committer: Francois Cartegnie
demux: ts: fix incorrect table type ref in psip > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=499813ab39dc40ecfe110767c796280ef90ca710 --- modules/demux/mpeg/ts_psip.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/demux/mpeg/ts_psip.c b/modules/demux/mpeg/ts_psip.c index 2918f27..4857f36 100644 --- a/modules/demux/mpeg/ts_psip.c +++ b/modules/demux/mpeg/ts_psip.c @@ -434,10 +434,13 @@ static void ATSC_EIT_Callback( void *p_pid, dvbpsi_atsc_eit_t* p_eit ) p_basectx->p_stt->i_gps_utc_offset ); EIT_DEBUG_TIMESHIFT( i_current_time ); + const uint16_t i_table_type = p_eit_pid->u.p_psip->p_ctx->i_tabletype; + assert(i_table_type); + /* Use PID for segmenting our EPG tables updates. 1 EIT/PID transmits 3 hours, * with a max of 16 days over 128 EIT/PID. Unlike DVD, table ID is here fixed. * see ATSC A/65 5.0 */ - vlc_epg_t *p_epg = vlc_epg_New( p_basectx->i_tabletype - ATSC_TABLE_TYPE_EIT_0, + vlc_epg_t *p_epg = vlc_epg_New( i_table_type - ATSC_TABLE_TYPE_EIT_0, i_program_number ); if( !p_epg ) { _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
