changeset 21005:78d74a06b827

new DEMUXER_CTRL_IDENTIFY_PROGRAM to identify programs (a+v+s)
author nicodvb
date Sat, 18 Nov 2006 14:31:31 +0000
parents b407596e083e
children deafbd2533df
files libmpdemux/demuxer.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.h	Sat Nov 18 12:41:31 2006 +0000
+++ b/libmpdemux/demuxer.h	Sat Nov 18 14:31:31 2006 +0000
@@ -79,6 +79,7 @@
 #define DEMUXER_CTRL_SWITCH_AUDIO 12
 #define DEMUXER_CTRL_RESYNC 13
 #define DEMUXER_CTRL_SWITCH_VIDEO 14
+#define DEMUXER_CTRL_IDENTIFY_PROGRAM 15
 
 // Holds one packet/frame/whatever
 typedef struct demux_packet_st {
@@ -197,6 +198,11 @@
   char** info;
 } demuxer_t;
 
+typedef struct {
+  int progid;        //program id
+  int aid, vid, sid; //audio, video and subtitle id
+} demux_program_t;
+
 inline static demux_packet_t* new_demux_packet(int len){
   demux_packet_t* dp=(demux_packet_t*)malloc(sizeof(demux_packet_t));
   dp->len=len;