new DEMUXER_CTRL_IDENTIFY_PROGRAM to identify programs (a+v+s)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21021 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2006-11-18 14:31:31 +00:00
parent 84abdd9df9
commit c97dc5061d
1 changed files with 6 additions and 0 deletions

View File

@ -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 @@ typedef struct demuxer_st {
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;