summaryrefslogtreecommitdiffstats
path: root/libmpdemux/mpeg_hdr.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename directories, move files (step 1 of 2) (does not compile)wm42012-11-121-539/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tis drops the silly lib prefixes, and attempts to organize the tree in a more logical way. Make the top-level directory less cluttered as well. Renames the following directories: libaf -> audio/filter libao2 -> audio/out libvo -> video/out libmpdemux -> demux Split libmpcodecs: vf* -> video/filter vd*, dec_video.* -> video/decode mp_image*, img_format*, ... -> video/ ad*, dec_audio.* -> audio/decode libaf/format.* is moved to audio/ - this is similar to how mp_image.* is located in video/. Move most top-level .c/.h files to core. (talloc.c/.h is left on top- level, because it's external.) Park some of the more annoying files in compat/. Some of these are relicts from the time mplayer used ffmpeg internals. sub/ is not split, because it's too much of a mess (subtitle code is mixed with OSD display and rendering). Maybe the organization of core is not ideal: it mixes playback core (like mplayer.c) and utility helpers (like bstr.c/h). Should the need arise, the playback core will be moved somewhere else, while core contains all helper and common code.
* libmpdemux: add back demux_mpgwm42012-09-181-0/+539
| | | | | | | | | | | | | | | | | | | | | Apparently this was needed for good DVD playback. This demuxer has been removed in 1fde09db6f4ce. All code added comes from the revision before that. Some other bits have been removed in later commits, and are added back as well. Usage of memalign() is replaced by av_malloc(). As far as I can tell, this memory is never free'd or reallocated, so no calls to av_free() have been added. The code re-added to video.c is plain horrible, full of code duplication, full of demuxer/codecs specifics, but apparently needed. Unrelated to re-adding the demuxer, re-add one codepath for DEMUXER_TYPE_TV, which was accidentally removed in the same commit demux_mpg was removed. The closed captions decoder is not re-added.
* Remove some demuxers and decoderswm42012-07-301-539/+0
| | | | | | | | | | | | | | | | | | Most of these demuxers and decoders are provided in better form by libav, while the mplayer builtin ones are essentially unmaintained. The only legimitate use case for not using the libav ones was working around libav bugs or bugs related to the way mplayer uses libav. Instead of trying to keep dead code alive, development effort should go into improving libav or the mplayer libav glue code. Note that the libav demuxer have been preferred over the mplayer builtin ones for a while in mplayer2. There were some exceptions: playing DVDs with dvdnav or playing network sources. (That's because some stream modules and network.c requested explicit file formats, such as DEMUXER_TYPE_MPEG_PS, which mapped to builtin demuxers.) With this commit, they are switched to use libav. One caveat is that the requested format is not passed to libavformat, instead we rely on the auto probing to select the correct libav demuxer (see code in demux_open_stream()).
* cleanup: some warning fixes and minor cleanupsreimar2011-06-291-6/+3
| | | | | | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33399 b3059339-0415-0410-9bf9-f77b7e298cf2 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33400 b3059339-0415-0410-9bf9-f77b7e298cf2 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33421 b3059339-0415-0410-9bf9-f77b7e298cf2 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33425 b3059339-0415-0410-9bf9-f77b7e298cf2 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33426 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanup: shut up more warningsClément Bœsch2011-05-061-3/+3
|
* mpeg_hdr.c: move function to avoid forward declarationdiego2010-11-021-36/+34
| | | | | | Move mp_unescape03 function around to avoid forward declaration. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32433 b3059339-0415-0410-9bf9-f77b7e298cf2
* Calculate width and height in mp4_header_process_vop().cehoyos2010-03-151-0/+7
| | | | | | | Fixes elementary streams with -vc ffodivxvdpau and the native demuxer. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30904 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix value of bit counter at end of functions to prepare for future patches.cehoyos2010-03-151-4/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30903 b3059339-0415-0410-9bf9-f77b7e298cf2
* Initialize frame rate extension fields in mp_header_process_sequence_headerreimar2010-02-211-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30682 b3059339-0415-0410-9bf9-f77b7e298cf2
* Parse and use the information from the frame rate extension header for MPEG-2.reimar2010-02-211-0/+3
| | | | | | | | -identify still does not show the right values though. Fixes bug #1636. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30681 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix H.264 SPS parsing in case of scaling list present.cehoyos2009-08-111-2/+15
| | | | | | | Patch by Marco Munderloh, munderl A tnt D uni-hannover D de git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29494 b3059339-0415-0410-9bf9-f77b7e298cf2
* whitespace cosmetics: Remove all trailing whitespace.diego2009-05-131-32/+32
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add standard license header to all files in libmpdemux.diego2009-05-081-2/+19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29280 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark constant argument of mp_header_process_sequence_header as such.diego2007-10-191-1/+1
| | | | | | | | | fixes warning: vd_mpegpes.c: In function 'decode': vd_mpegpes.c:49: warning: passing argument 2 of 'mp_header_process_sequence_header' discards qualifiers from pointer target type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24812 b3059339-0415-0410-9bf9-f77b7e298cf2
* in h264_parse_sps() reuse mp_unescape03()nicodvb2007-01-201-27/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21971 b3059339-0415-0410-9bf9-f77b7e298cf2
* added function to parse vc1 sequence headernicodvb2007-01-201-0/+115
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21965 b3059339-0415-0410-9bf9-f77b7e298cf2
* COSMETICS: moved code to parse mpeg1/2 A/R to mpeg_hdr.cnicodvb2006-05-071-0/+33
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18399 b3059339-0415-0410-9bf9-f77b7e298cf2
* H264: when fixed_fps is set the framerate is expressed in fields per second, ↵nicodvb2006-03-251-0/+2
| | | | | | so it must be halved git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17953 b3059339-0415-0410-9bf9-f77b7e298cf2
* multiplying fps by 10000 is no more necessary (when determining mp4v and ↵nicodvb2005-08-301-2/+2
| | | | | | h264 framerate) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16320 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l to whoever wrote this crap using 1/10000 units. it caused framerates to ↵rfelker2005-08-061-6/+6
| | | | | | get trashed from 30000/1001 to 2997/100, etc.! git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16185 b3059339-0415-0410-9bf9-f77b7e298cf2
* demux high profile H.264 ESlorenm2005-06-021-0/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15619 b3059339-0415-0410-9bf9-f77b7e298cf2
* proper fixrfelker2005-04-201-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15226 b3059339-0415-0410-9bf9-f77b7e298cf2
* undo dominik's 1000l cvs admin -o (recommitting bad patch)rfelker2005-04-201-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15225 b3059339-0415-0410-9bf9-f77b7e298cf2
* integer overflow when reading fps from h264 vui.lorenm2005-04-191-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15218 b3059339-0415-0410-9bf9-f77b7e298cf2
* assign picture->(width,height) when parsing h264nicodvb2005-04-091-4/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15074 b3059339-0415-0410-9bf9-f77b7e298cf2
* export getbits() as mp_getbits()nicodvb2005-03-201-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14968 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix:rathann2005-03-011-5/+5
| | | | | | | | | | | | | | | | mpeg_hdr.c:212: warning: no return statement in function returning non-void mpeg_hdr.c:262: warning: suggest parentheses around assignment used as truth value mpeg_hdr.c:264: warning: suggest parentheses around assignment used as truth value mpeg_hdr.c:270: warning: suggest parentheses around assignment used as truth value mpeg_hdr.c:275: warning: suggest parentheses around assignment used as truth value mpeg_hdr.c:212: warning: control reaches end of non-void function mp4_header_process_vop() return value isn't used anywhere anyway. Approved by Nico. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14888 b3059339-0415-0410-9bf9-f77b7e298cf2
* missing #include (for malloc and free)rathann2005-03-011-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14887 b3059339-0415-0410-9bf9-f77b7e298cf2
* framerate autodetection for H264 in raw/ts streamsnicodvb2005-02-241-0/+148
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14799 b3059339-0415-0410-9bf9-f77b7e298cf2
* automatic fps calculation for mpeg4 in raw stream/mpeg-tsnicodvb2005-01-121-1/+110
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14478 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless "size restrictions" messageranma2004-07-031-5/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12756 b3059339-0415-0410-9bf9-f77b7e298cf2
* mpeg2 chroma422/444 supportiive2004-06-111-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12563 b3059339-0415-0410-9bf9-f77b7e298cf2
* after some STFW i've found some info about fps codesarpi2002-03-311-4/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5442 b3059339-0415-0410-9bf9-f77b7e298cf2
* mtvp says its' 29.97 not 1 fpsarpi2002-03-311-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5441 b3059339-0415-0410-9bf9-f77b7e298cf2
* mpeg video header parserarpi2001-10-301-0/+100
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2566 b3059339-0415-0410-9bf9-f77b7e298cf2