[vlc-commits] demux: ts: add fixed entry for base_si pid

Francois Cartegnie git at videolan.org
Thu Feb 11 20:16:20 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb 11 11:51:23 2016 +0100| [f6d5425865049bfd07e8152b8ac87bb1beeca7ec] | committer: Francois Cartegnie

demux: ts: add fixed entry for base_si pid

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f6d5425865049bfd07e8152b8ac87bb1beeca7ec
---

 modules/demux/mpeg/ts_pid.c |    3 +++
 modules/demux/mpeg/ts_pid.h |    1 +
 2 files changed, 4 insertions(+)

diff --git a/modules/demux/mpeg/ts_pid.c b/modules/demux/mpeg/ts_pid.c
index 5cc7219..ffb9781 100644
--- a/modules/demux/mpeg/ts_pid.c
+++ b/modules/demux/mpeg/ts_pid.c
@@ -36,6 +36,7 @@ void ts_pid_list_Init( ts_pid_list_t *p_list )
 {
     p_list->dummy.i_pid = 8191;
     p_list->dummy.i_flags = FLAG_SEEN;
+    p_list->base_si.i_pid = 0x1FFB;
     p_list->pp_all = NULL;
     p_list->i_all = 0;
     p_list->i_all_alloc = 0;
@@ -63,6 +64,8 @@ ts_pid_t * ts_pid_Get( ts_pid_list_t *p_list, uint16_t i_pid )
     {
         case 0:
             return &p_list->pat;
+        case 0x1FFB:
+            return &p_list->base_si;
         case 0x1FFF:
             return &p_list->dummy;
         default:
diff --git a/modules/demux/mpeg/ts_pid.h b/modules/demux/mpeg/ts_pid.h
index a714e28..b14efc0 100644
--- a/modules/demux/mpeg/ts_pid.h
+++ b/modules/demux/mpeg/ts_pid.h
@@ -82,6 +82,7 @@ typedef struct ts_pid_list_t
 {
     ts_pid_t   pat;
     ts_pid_t   dummy;
+    ts_pid_t   base_si;
     /* all non commons ones, dynamically allocated */
     ts_pid_t **pp_all;
     int        i_all;



More information about the vlc-commits mailing list