1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-26 02:05:31 +00:00
mpv/libmpdemux
rfelker 5528785463 nico partially fixed the bug i reported; here's the rest of the fix.
basically demux_audio was mixing data in its header buffer in a bogus
manner, whereby it could sometimes "make up" valid mpeg headers where
no such header actually occurred in the file. it should be correct now.

btw these changes also fix the bug where mplayer reports huge initial
cpu usage for sound when playing mp3 files.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15206 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-04-17 17:17:52 +00:00
..
realrtsp Fix potential buffer overflow if server answers with too many lines 2005-04-15 23:30:44 +00:00
.cvsignore
ai_alsa1x.c
ai_alsa.c
ai_oss.c
asf_mmst_streaming.c Use define instead of hardcodec value for max streams number 2005-04-16 13:42:50 +00:00
asf_streaming.c fix for streams that do not send a bitrate 2005-02-03 20:13:44 +00:00
asf.h
asfheader.c fix stream selection and -bandwidth for mms-over-http. 2004-12-25 11:31:32 +00:00
audio_in.c
audio_in.h
aviheader.c switch from DIVX -> FMP4 fourcc for libavcodec 2005-02-22 20:24:18 +00:00
aviheader.h
aviprint.c
bswap.h
cache2.c
cdd.h
cdda.c
cddb.c
cdinfo.c
config.h
cookies.c
cookies.h
cue_read.c
cue_read.h
demux_asf.c Move generic length and percent pos calculation to demuxer.c 2005-01-15 16:11:45 +00:00
demux_audio.c nico partially fixed the bug i reported; here's the rest of the fix. 2005-04-17 17:17:52 +00:00
demux_avi.c Move generic length and percent pos calculation to demuxer.c 2005-01-15 16:11:45 +00:00
demux_avs.c 10l 2005-02-13 21:36:56 +00:00
demux_avs.h avisynth demuxer patch by Gianluigi Tiesi <mplayer at netfarm.it> 2005-02-13 13:39:19 +00:00
demux_demuxers.c
demux_film.c
demux_fli.c
demux_gif.c
demux_lavf.c various (de)muxer_lavf fixes 2005-03-25 22:47:09 +00:00
demux_lmlm4.c
demux_mf.c
demux_mkv.c Online audio switching now supports Matroska too. Patch by Michael Behrisch 2005-04-13 22:33:19 +00:00
demux_mov.c Fix alac from QTpro (in standard mov file, not in m4a file) 2005-03-30 22:10:07 +00:00
demux_mpg.c Added support of audio stream switching in the MPEG demuxer using the #-key 2005-04-03 14:08:28 +00:00
demux_nsv.c avoid always skipping first junk with a "sync lost" message 2004-09-09 19:28:54 +00:00
demux_nuv.c Make nuv files work on bigendian (but old nuv files created with mencoder 2005-03-03 10:19:56 +00:00
demux_ogg.c Fix the ogg fourcc nightmare!!! 2005-02-27 18:11:17 +00:00
demux_pva.c
demux_rawaudio.c
demux_rawdv.c Rather simple patch for RAWDV demuxer which lets it say whats the total 2005-03-09 20:29:50 +00:00
demux_rawvideo.c y420 vs i420 typo 2004-12-16 23:54:59 +00:00
demux_real.c Fix rm files with a really big index chunk. 2005-03-03 10:23:28 +00:00
demux_realaud.c Fix very old ra files with no fourcc 2005-03-03 23:02:45 +00:00
demux_roq.c
demux_rtp_codec.cpp
demux_rtp_internal.h LIVE.COM tests moved to ./configure 2004-08-09 08:22:10 +00:00
demux_rtp.cpp
demux_rtp.h
demux_smjpeg.c
demux_ts.c set width, height and biCompression when the video stream contains avc1; reuse a private member rather than a in-stack packet[204]; set pes_es->is_synced =1 when au_start=1 (SL); update PMT when setting mp4es codec (SL); fix tss->is_synced assignment (don't forget the value when it was previously set) 2005-04-09 11:30:59 +00:00
demux_ty_osd.c
demux_ty.c Move generic length and percent pos calculation to demuxer.c 2005-01-15 16:11:45 +00:00
demux_viv.c
demux_vqf.c TwinVQ decoder and demuxer 2004-12-29 19:51:56 +00:00
demux_xmms_plugin.h
demux_xmms.c removing AFMT_ dependancy 2004-12-27 17:55:06 +00:00
demux_y4m.c
demuxer.c Added support of audio stream switching in the MPEG demuxer using the #-key 2005-04-03 14:08:28 +00:00
demuxer.h Added support of audio stream switching in the MPEG demuxer using the #-key 2005-04-03 14:08:28 +00:00
dvb_defaults.h Mark modified imported files as such to comply more closely with GPL §2a. 2005-04-16 12:51:09 +00:00
dvb_tune.c Mark modified imported files as such to comply more closely with GPL §2a. 2005-04-16 12:51:09 +00:00
dvbin.c Mark modified imported files as such to comply more closely with GPL §2a. 2005-04-16 12:51:09 +00:00
dvbin.h Mark modified imported files as such to comply more closely with GPL §2a. 2005-04-16 12:51:09 +00:00
dvdnav_stream.c
dvdnav_stream.h
ebml.c 100l, no endian conversion on floats! 2005-01-13 21:56:06 +00:00
ebml.h
extension.c demux ac3 by means of lavf by default 2005-04-07 18:59:15 +00:00
frequencies.c
frequencies.h
genres.h more genre IDs by Bernd Ernesti <mplayer@lists.veego.de> 2004-08-22 14:43:42 +00:00
help_mp.h
http.c free http field_name to fix memleak 2005-01-11 17:49:59 +00:00
http.h
Makefile added a stream module for the vstream client library 2005-02-27 04:25:12 +00:00
matroska.h Handle missing palettes in the info part of VobSubs in Matroska files correctly by giving mplayer a NULL pointer. This way it will use a default palette instead of black only. Patch by Csillag Kristof (fenwick () freemail ! hu) 2005-01-21 18:25:44 +00:00
mf.c
mf.h
mp3_hdr.c assign correct tag, dwScale and dwBlockAlign to mpeg audio; optionally assign layer and samples_per_frame when parsing mpa header 2005-04-17 09:42:51 +00:00
mp3_hdr.h assign correct tag, dwScale and dwBlockAlign to mpeg audio; optionally assign layer and samples_per_frame when parsing mpa header 2005-04-17 09:42:51 +00:00
mp_msg.h
mpeg_hdr.c assign picture->(width,height) when parsing h264 2005-04-09 11:00:00 +00:00
mpeg_hdr.h Fix: 2005-03-01 23:45:32 +00:00
ms_hdr.h Better protection against double definition of MPEGLAYER3WAVEFORMAT 2004-08-09 15:53:10 +00:00
muxer_avi.c new mpeg muxer compatible with dvd/[s]vcd; small changes in the muxer layer (sanity checks in the muxer_init functions) 2005-02-21 21:45:49 +00:00
muxer_lavf.c added missing initializer in URLProtocolo; mux packets only if len > 0; second mencoder's a/v sync model 2005-04-17 09:13:48 +00:00
muxer_mpeg.c changed :vaspect option to CONF_TYPE_FLOAT 2005-04-10 10:06:59 +00:00
muxer_rawvideo.c new mpeg muxer compatible with dvd/[s]vcd; small changes in the muxer layer (sanity checks in the muxer_init functions) 2005-02-21 21:45:49 +00:00
muxer.c initial, extremely experimental, libavformat muxer; don't expect anything to work yet 2005-02-21 23:18:31 +00:00
muxer.h missing declaration, fixes: 2005-03-18 01:59:43 +00:00
netstream.h
network.c added support for raw udp:// streaming 2005-02-17 20:55:57 +00:00
network.h
nuppelvideo.h Make nuv files work on bigendian (but old nuv files created with mencoder 2005-03-03 10:19:56 +00:00
open.c added a stream module for the vstream client library 2005-02-27 04:25:12 +00:00
parse_es.c
parse_es.h
parse_mp4.c
parse_mp4.h Extended support for other object type IDs in the ESDS. This enables e.g. MPEG2 video in the MP4 container. 2004-11-15 15:04:57 +00:00
pnm.c "Fix" for pnm EOF detection (stop on read errors) 2005-04-09 14:50:36 +00:00
pnm.h
qtpalette.h
README
rtp.c Mark modified imported files as such to comply more closely with GPL §2a. 2005-04-16 12:51:09 +00:00
rtp.h Mark modified imported files as such to comply more closely with GPL §2a. 2005-04-16 12:51:09 +00:00
stheader.h Remove file-global mpadec, add ad_driver member to sh_audio_t instead. 2005-02-25 11:17:43 +00:00
stream_file.c
stream_ftp.c
stream_netstream.c
stream_null.c
stream_vcd.c fix http://bugzilla.mplayerhq.hu/show_bug.cgi?id=260 2005-04-06 11:53:45 +00:00
stream_vstream.c more on tivo vstream support.. 1000l to Joey for forgetting this file and breaking MPlayer build! :) 2005-02-27 05:53:12 +00:00
stream.c added a stream module for the vstream client library 2005-02-27 04:25:12 +00:00
stream.h added a stream module for the vstream client library 2005-02-27 04:25:12 +00:00
test.c
tv.c several sets of headers declare global variables in them, which causes multiple definition errors with gcc 4.x 2005-01-29 12:24:43 +00:00
tv.h several sets of headers declare global variables in them, which causes multiple definition errors with gcc 4.x 2005-01-29 12:24:43 +00:00
tvi_bsdbt848.c removing AFMT_ dependancy 2004-12-27 17:30:15 +00:00
tvi_def.h
tvi_dummy.c
tvi_v4l2.c removing AFMT_ dependancy 2004-12-27 17:30:15 +00:00
tvi_v4l.c removing AFMT_ dependancy 2004-12-27 17:30:15 +00:00
url.c
url.h
vcd_read_darwin.h fix build on darwin ppc 2004-11-01 17:57:00 +00:00
vcd_read_fbsd.h
vcd_read_nbsd.h
vcd_read.h
video.c added support for other codecs (mpeg4/h264/aac) in mpeg-ps parsing the PSM 2005-03-06 21:10:01 +00:00
videodev2.h
yuv4mpeg_intern.h
yuv4mpeg_ratio.c
yuv4mpeg.c replace almost obsolete email address: snel@phys.uu.nl -> rsnel@cube.dyndns.org 2005-01-08 14:32:26 +00:00
yuv4mpeg.h replace almost obsolete email address: snel@phys.uu.nl -> rsnel@cube.dyndns.org 2005-01-08 14:32:26 +00:00

libmpdemux - MPlayer's input/demuxer layer  (C) A'rpi / MPlayer team
==========================================

NOTE: It is not in the final form yet! API may change...

Stream input layer:
===================
#include "stream.h"

Supported modes:
- file (by 2048 byte sectors) including STDIN (if filename "-")
- VCD disk (by 2324 byte mode2 sectors)
- network (buggy, mpg/avi download-like streaming works, asf not)
- DVD disk using with libdvdread 0.8 or 0.9

Note: optional CACHE layer with read-ahead and seek-back buffer (not finished)

Demuxer layer:
==============
#include "demuxer.h"

Supported formats:
- MPEG (PS,PES,VOB,ES), including VCD disk image files (.ISO/.BIN)
- AVI, with or without index, interleaved and non-interleaved formats
- ASF v1.0 (aka .wmv/.wma)
- Quicktime MOV - including compressed headers, CBR and VBR

Others:
=======
#include "stheader.h" - audio and video stream structs used by header parsers
#include "parse_es.h" - Mpeg ES stream parser

Using it outside of mplayer tree:
=================================
It uses a few things from mplayer tree:
config.h - system-dependent options, see ./configure
mp_msg.c/.h - mplayer's message printing code - copy it or impement your own
help_mp.h - error/info message texts
bswap.h - little/big endian conversion

If you use it in your project - please tell me!

A'rpi - arpi@thot.banki.hu