Commit Graph

3112 Commits

Author SHA1 Message Date
diego 02135001b4 Change a bunch of video/audio-output-specific preprocessor directives from
a HAVE_ prefix to a CONFIG_ prefix.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27402 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-08-03 15:21:40 +00:00
diego 96a506733d Change a bunch of codec-specific preprocessor directives from a HAVE_
prefix to a CONFIG_ prefix.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27395 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-08-02 16:30:32 +00:00
diego d17f9943af Rename some preprocessor directives from CONFIG_* to HAVE_* where appropriate;
CONFIG_ prefix for configurable options, HAVE_ for system-dependent stuff.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27391 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-08-01 20:28:58 +00:00
diego 4b141479da Start unifying names of internal preprocessor directives.
Replace all USE_ prefixes by CONFIG_ prefixes to indicate
options which are configurable.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27373 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-30 12:01:30 +00:00
ptt aba5ea4a69 changed 'Audio file' to 'Audio only' (to not get 'Audio file file' when played)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27365 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-29 11:17:52 +00:00
compn 3069de886e add ffvp6a codec
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27356 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-28 01:01:54 +00:00
compn b3978d78b2 add ffmotionpixels codec
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27355 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-28 00:50:39 +00:00
reimar bf91f83022 Get rid of horrible code that relies on codec-set context variable,
it is useless anyway since all the necessary information is available anyway.
This also makes MPlayer display the correct length for Theora-in-Ogg-Videos.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27354 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-26 22:27:50 +00:00
reimar 4153f4e21c Avoid including avcodec.h in demuxer.h (and thus many other files) just to get
FF_INPUT_BUFFER_PADDING_SIZE.
Instead use MP_INPUT_BUFFER_PADDING_SIZE and add a preprocessor check that it
is big enough.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27314 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 17:14:12 +00:00
reimar 9254d010ea limits.h is required for UINT_MAX
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27305 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 18:51:39 +00:00
reimar b422b105d7 And a 1000l for r27263, swapped a condition, thus setting size to
0 when malloc succeeded instead of when it failed.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27304 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 17:48:34 +00:00
reimar 2f5b26277f 100l, fix calloc being called with the wrong argument due to reordering
two lines in SVN r27263


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27303 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 17:28:19 +00:00
reimar 4a46fcaebc Make sure demuxed ASF packet is properly padded after descrambling
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27302 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 16:43:40 +00:00
reimar e870f84bfb Move duplicate FF_INPUT_BUFFER_PADDING_SIZE handling into demuxer.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27301 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 16:18:25 +00:00
reimar 3f35a38237 Do not just print a warning, also fix the len in ASF demuxer!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27299 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-16 16:06:14 +00:00
reimar 95cee5309f Change a broken check. FFMAX does not work as intended because trak->chunkmap[i].first
is unsigned and j is signed.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27280 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-14 15:49:59 +00:00
reimar 468f0e9763 100l, do not use macros on functions that are not idempotent
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27275 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-13 16:56:00 +00:00
reimar c0455325f0 Reindent after last commit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27266 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-11 22:04:29 +00:00
reimar d8b29c80d5 Check size of tkdata before using it in mov demuxer.
Fixes bug #1170 and others.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27265 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-11 22:03:01 +00:00
reimar 49ddf2e0f5 Add atom_len sanity check to mov demuxer.
Fixes bug #1168


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27264 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-11 21:59:17 +00:00
reimar baae5f1bdd Quick hack to fix demux_mov crashes where easily possible.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27263 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-11 20:22:07 +00:00
reimar 6da3883a44 1000l, fix demux_lavf compilation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27251 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-11 18:04:36 +00:00
reimar 3ee9460505 Correct stream-seekability tests in demux_audio and demux_lavf
Based on a patch by Alexander Kanavin (alexander.kanavin nokia com)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27250 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-11 17:25:37 +00:00
reimar 8833f7c4ce Only read wav header cbSize when there is enough space in header.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27249 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-10 20:10:11 +00:00
reimar 646838e446 100l, assignment introduced in r27246 was exactly the wrong way around.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27248 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-10 20:06:43 +00:00
reimar 6f96a10094 Cosmetics: reindent
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27247 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-10 19:30:23 +00:00
reimar bbb598b9eb Clean up reading of wav extradata.
Fixes bug #1135


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27246 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-10 19:29:02 +00:00
reimar 80256aee5e Fix stupid and almost pointless check-after-read code in asfheader.c.
Fixes bug #1133.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27243 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-09 18:24:48 +00:00
diego 8365a97450 Use correct PRIu64 length modifier for uint64_t value, fixes the warning:
libmpdemux/mpeg_packetizer.c:61: warning: format '%lu' expects type 'long unsigned int', but argument 6 has type 'uint64_t'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27233 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-08 08:17:50 +00:00
diego a77608b67a Add support for MLP audio through FFmpeg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27232 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-07 12:17:46 +00:00
diego 1c010f2202 Add standard license header for NuppelVideo, i.e. GPL v2+.
The code taken from NuppelVideo consists of just a bunch of struct
definitions, which are not copyrightable.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27224 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-06 15:12:32 +00:00
reimar 869e44fdcc Check stdata_len before accessing stdata. Fixes bug #1125
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27194 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-04 15:47:31 +00:00
reimar 100554a37f Replace asserts by proper conditions to allow playback of some broken but
still playable files.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27154 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-29 10:06:19 +00:00
reimar 2293c79521 Make sure we do not use uninitialized data in case of a short read.
Not really relevant but fixes bug #1109


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27143 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-29 07:34:44 +00:00
reimar d5e01cffea Do not use stdata before checking its length
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27142 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-29 07:25:47 +00:00
compn c191e0424b add support for /game-formats/psx-str/
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27133 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-24 12:15:31 +00:00
diego bc9ab4990b Add missing #includes that are required for things used in the header.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27095 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-17 09:09:36 +00:00
diego 437b206595 cosmetics: Remove useless parentheses, align.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27091 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-16 17:33:55 +00:00
reimar 3e081f4563 Chapter support for lavf demuxer.
Patch by Anton Khirnov [wyskas gmail com]


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27090 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-16 15:54:29 +00:00
reimar 80141566b6 Support NULL name parameter for demuxer_add_chapter.
Patch by  Anton Khirnov [wyskas gmail com]


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27089 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-16 15:53:28 +00:00
diego b01b384616 cosmetics: Break overly long lines.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27088 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-16 12:54:28 +00:00
diego ed59b9030e cosmetics: indentation, whitespace changes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27087 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-16 12:11:14 +00:00
diego 005cf981d4 cosmetics: consistent * placement
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27086 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-16 12:04:58 +00:00
diego d77499b1fe cosmetics: one more if brace placement fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27085 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-16 11:35:20 +00:00
diego 0d9f0ba013 M-x untabify
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27084 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-16 10:52:39 +00:00
diego 057924754d cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27083 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-16 10:50:53 +00:00
diego 8cf83f75ee cosmetics: Split/join multiline statements.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27082 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-16 10:49:40 +00:00
diego 11b1a351b3 cosmetics: Consistently format all if, for, while constructs.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27081 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-16 10:31:05 +00:00
diego f306f79bd0 Remove one more commented-out line.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27080 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-16 09:51:40 +00:00
diego 90ff0f7dcc cosmetics: Make all function declarations consistent by moving the opening
braces to the next line and breaking long lines.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27079 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-16 09:22:41 +00:00