diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-19 00:21:54 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-19 00:21:54 +0000 |
commit | 970435ce12de15022db3f920b293799462dd7518 (patch) | |
tree | 61d49faf24e71afdf7b097ba2431cbe7bb4974b8 /libmpdemux/demuxer.h | |
parent | 721a0b6362bd129bfccc9541030df14abe86405a (diff) | |
download | mpv-970435ce12de15022db3f920b293799462dd7518.tar.bz2 mpv-970435ce12de15022db3f920b293799462dd7518.tar.xz |
extension-based filetype detection for headerless files (mp3 vs mpeg, etc)
inspired by patch by Fabian Franz <FabianFranz@gmx.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9007 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demuxer.h')
-rw-r--r-- | libmpdemux/demuxer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libmpdemux/demuxer.h b/libmpdemux/demuxer.h index a1489b896a..cd19970900 100644 --- a/libmpdemux/demuxer.h +++ b/libmpdemux/demuxer.h @@ -231,7 +231,7 @@ static inline int avi_stream_id(unsigned int id){ return a*10+b; } -demuxer_t* demux_open(stream_t *stream,int file_format,int aid,int vid,int sid); +demuxer_t* demux_open(stream_t *stream,int file_format,int aid,int vid,int sid,char* filename); int demux_seek(demuxer_t *demuxer,float rel_seek_secs,int flags); demuxer_t* new_demuxers_demuxer(demuxer_t* vd, demuxer_t* ad, demuxer_t* sd); @@ -240,6 +240,8 @@ extern int index_mode; // -1=untouched 0=don't use index 1=use (geneate) inde extern int force_ni; extern int pts_from_bps; +extern int extension_parsing; + int demux_info_add(demuxer_t *demuxer, char *opt, char *param); char* demux_info_get(demuxer_t *demuxer, char *opt); int demux_info_print(demuxer_t *demuxer); @@ -249,3 +251,5 @@ int demux_control(demuxer_t *demuxer, int cmd, void *arg); extern unsigned long demuxer_get_time_length(demuxer_t *demuxer); extern int demuxer_get_percent_pos(demuxer_t *demuxer); + +extern int demuxer_type_by_filename(char* filename); |