]> git.sesse.net Git - vlc/blob - modules/demux/asf/asf.h
* asf : trying to fix pts handling.
[vlc] / modules / demux / asf / asf.h
1 /*****************************************************************************
2  * asf.h : ASFv01 file input module for vlc
3  *****************************************************************************
4  * Copyright (C) 2001 VideoLAN
5  * $Id: asf.h,v 1.3 2003/02/01 01:21:04 fenrir Exp $
6  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
7  * 
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  * 
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
21  *****************************************************************************/
22
23 typedef struct asf_stream_s
24 {
25     int i_cat;
26     es_descriptor_t *p_es;
27     asf_object_stream_properties_t *p_sp;
28
29     mtime_t i_time;
30
31     pes_packet_t    *p_pes; // used to keep uncomplete frames
32
33 } asf_stream_t;
34
35 struct demux_sys_t
36 {
37     mtime_t             i_pcr;  // 1/90000 s
38     mtime_t             i_time; //  µs
39
40     asf_object_root_t   root;
41     asf_object_file_properties_t    *p_fp;
42
43     int                 i_streams;
44     asf_stream_t        *stream[128];
45
46     off_t               i_data_begin;
47     off_t               i_data_end;
48
49 };