ao_pulse: support native mute control
[mplayer.git] / libmpdemux / demux_packet.h
blob30cd0010f546f2c00505d61227a816bee13f32b0
1 /*
2 * This file is part of mplayer2.
4 * mplayer2 is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * mplayer2 is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with mplayer2; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_DEMUX_PACKET_H
20 #define MPLAYER_DEMUX_PACKET_H
22 #include <sys/types.h>
24 // Holds one packet/frame/whatever
25 typedef struct demux_packet {
26 int len;
27 double pts;
28 double duration;
29 double stream_pts;
30 off_t pos; // position in index (AVI) or file (MPG)
31 unsigned char *buffer;
32 int flags; // keyframe, etc
33 int refcount; // counter for the master packet, if 0, buffer can be free()d
34 struct demux_packet *master; //in clones, pointer to the master packet
35 struct demux_packet *next;
36 struct AVPacket *avpacket; // original libavformat packet (demux_lavf)
37 } demux_packet_t;
39 #endif /* MPLAYER_DEMUX_PACKET_H */