# HG changeset patch # User nicodvb # Date 1163860291 0 # Node ID 78d74a06b827251a81352005ce91984cd4a450ab # Parent b407596e083e8c6fbb0d61e1f6f9d73ac02897e2 new DEMUXER_CTRL_IDENTIFY_PROGRAM to identify programs (a+v+s) diff -r b407596e083e -r 78d74a06b827 libmpdemux/demuxer.h --- 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;