summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* stream: Make stream_write_buffer() check for short writesranma2011-04-124-4/+23
| | | | | | | | | | | | | | | | | | | | None of the calling sites to stream_write_buffer were checking the return value to see if all bytes got written (nothing in current code actually calls it any more after MEncoder was removed). This was causing (very occasionally) problems with mencoder when using output pipes AND running under a sandbox or when being straced (ptrace is the culprit). Theoretically this problem can happen without pipes or ptrace. Only stream_file, stream_smb and stream_ffmpeg implement write_buffer and ffmpeg already handles this internally. Original patch by Sang-Uok Kum. Signed-off-by: Tobias Diedrich <ranma@google.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32881 b3059339-0415-0410-9bf9-f77b7e298cf2
* OSD: support displaying fractional part of current positionUoti Urpala2011-04-125-5/+70
| | | | | | | | Add option -osd-fractions which enables display of fractional seconds when showing the current playback time on OSD. Based on a patch from Christian <herr.mitterlehner@gsmpaaiml.com> but with several modifications.
* demux_lavf: disable support for byte-based seekingUoti Urpala2011-04-081-0/+4
| | | | | | | | | | | | libavformat returns nonsense per-stream bitrate values for some MPEG files (0 or many times higher than the overall bitrate of the file), which triggered the heuristic to enable byte-based seeking in demux_lavf and then made the byte-based seeks wildly inaccurate. Disable the support for byte-based seeks. This will avoid problems with files that have consistent timestamps, but on the other hand will completely break seeking in MPEG files that have timestamp resets. I'll probably add at least an option to manually enable byte-based seeking later.
* demux_mkv: support runtime video track switchingUoti Urpala2011-04-081-0/+17
| | | | | | | Add code identical to the audio case to also support switching video tracks at runtime. Patch by "Hermi".
* VO: don't wait for map event in X VO initializationUoti Urpala2011-04-081-4/+0
| | | | | | | | | | | After creating a video window the common X code waited for a MapNotify event before proceeding. This meant that if the window was opened on another workspace the player would be stuck until the user switched to that workspace and the window could become actually visible. Remove this waiting code. I don't know why it was there or if it was actually beneficial/needed for some setup (at least common uses seem to work fine without it); it comes from the earliest MPlayer versions visible in VCS history.
* TOOLS/matroska.py: recognize CodecNameUoti Urpala2011-04-081-0/+1
|
* demux_mkv, demux_lavf: don't select initial audio trackUoti Urpala2011-04-022-36/+3
| | | | | | | | | | | | | Remove code that tries to select audio track during demuxer initialization from demux_mkv and demux_lavf. Just leave audio disabled at that point; the higher-level select_audio() function will call the demuxer to switch track later anyway. Removing this unneeded code also fixes use of these demuxers as the main demuxer with -audiofile. Before the automatic track selection would have enabled an audio track (if the file had any); as the main demuxer was not used for audio the unused packets from this enabled track would accumulate until they reached queue size limits.
* core: do proper audio track selection for -audiofile demuxerUoti Urpala2011-04-021-6/+3
| | | | | | | The select_audio() call was done on the main demuxer, not -audiofile one (the "if (mpctx->num_sources)" test in the previous code was always true). Call it on the -audiofile demuxer instead. The -audiofile stuff still needs a proper cleanup later though.
* configure: remove old GUI-related optionsUoti Urpala2011-04-021-19/+0
| | | | | | | | Remove --with-glib-config, --with-gtk-config, --enable-gui, --disable-gui, --enable-gtk1, --disable-gtk1. The only one of these that still had any effect was --enable-gui which printed a warning about GUI removal and exited. The --with options were still shown in help output, the rest had already been deleted from that.
* demux_mkv: fix uninitialized variableUoti Urpala2011-04-021-1/+1
| | | | | | Commit de42015a97cf296aad6307 ("demux_mkv: read tags") added code that failed to initialize a loop variable. Fix. No visible problems caused by the bug have been reported.
* mp3lib: drop internal mp3lib treeUoti Urpala2011-04-0233-9805/+1
| | | | | | | | | | | | | Delete mp3lib which has been the default mp3 decoder until now. In addition to being an unnecessary embedded library it now fails to compile correctly with the new gcc-4.6, producing noise. After the deletion the default decoder priority for mp3 will be first libmpg123 (a newer version of the code that mp3lib was based on) if available, then ffmp3float which should be available in all normal compiles. I think that some tweaking may be required as these decoder alternatives get wider testing, but any problems should be solvable and there should be no need for mp3lib.
* af_lavcac3enc: fix channel reorderingUoti Urpala2011-03-311-2/+3
| | | | | | Reordering to libavcodec channel order was broken with libavcodec versions using float input to the ac3 encoder because the reordering code still assumed int16 sample size. Fix.
* demux_mkv: support Blu-ray subtitlesUoti Urpala2011-03-312-0/+3
| | | | Recognize "S_HDMV/PGS" CodecID.
* demux_mkv: simplify subtitle type recognitionUoti Urpala2011-03-312-20/+8
| | | | | Remove indirection through MATROSKA_SUBTYPE_* and instead set the per-track type field to the letter identifier used in public sh_sub.
* demux_mkv: use generic packet handling code for subtitlesUoti Urpala2011-03-311-27/+5
| | | | | | | | Duration may now be set for packet types other than subtitles; as far as I can tell nothing should care. A check requiring valid duration values for subtitles is removed, because duration may not be properly set for all bitmap subtitle types; hopefully this doesn't make the behavior with (already broken) subtitles without duration worse.
* demux_mkv: support E-AC-3 audioUoti Urpala2011-03-312-0/+4
| | | | Recognize "A_EAC3" CodecID.
* demux_lavf: fix initial "-vid"-based video selectionUoti Urpala2011-03-311-1/+2
| | | | | | In 59058b54a73809866476b243d8bee82174fb4de8 (from svn r31129) Aurelien changed demux_lavf -vid indexing, but failed to change the initial video stream selection based on -vid to match. Fix.
* demux_lavf: fix stream switch returned index for no sound/videoUoti Urpala2011-03-311-12/+8
| | | | | | | | If the argument given to demux_lavf audio/video switch code is not one of -2, -1, or valid audio/video ID the code will treat it the same as -2 (switch to no sound / no video). However the returned index was not set to -2 in this case. Fix. Also change the returned index from -1 to -2 when staying at no sound / video.
* core, demux: fix video index handling in stream switchingUoti Urpala2011-03-312-20/+20
| | | | | | | | Fix bugs in the handling of stream index values in video stream switching. This is similar to what commit 90bedd0b872b6eea02351aafb62e did for audio. Also clean up the corresponding audio code a little bit.
* configure, Windows: support static pthreads on WindowsDiogo Franco2011-03-302-1/+25
| | | | | | Windows pthreads requires certain functions to be called to initialize itself. It can do that through DllMain but no such luck when linked statically; mplayer needs to call the initialization explicitly.
* vd_ffmpeg: fix thread count setting with latest ffmpeg-mtUoti Urpala2011-03-291-1/+3
| | | | | | | | Recent ffmpeg-mt versions changed the API for setting the number of decoding threads to use (I'm not sure whether dropping backwards compatibility was intentional or not). As a result only one thread was used. Make the thread setting compatible with the new API to restore proper multithreaded decoding.
* vo_mga, build: change include from "libavcore" to "libavutil"Uoti Urpala2011-03-281-1/+1
| | | | | | | | | Libavcore was merged back to libavutil. Change the mga_template.c include of libavcore/imgutils.h to match. This means that split libavcore/libavutil versions won't work any more; but since this only affects people who enable vo_mga and there was no released version using the split libs I won't bother with any conditionals for the include.
* Copyright, LICENSE: change binary license to GPL 3Uoti Urpala2011-03-242-288/+623
| | | | | | | Change license indicated for compiled binaries to GPL 3 to match talloc.c which is LGPL 3+. Note that at least for now the source licenses have NOT been changed - almost everything is still GPL 2+ or compatible, not GPL 3+.
* demux_ty: disable -subcc functionality (demux_ty_osd)Uoti Urpala2011-03-243-1/+8
| | | | | | | | Disable compilation of demux_ty_osd.c because of its GPL v2-only license. This only affects TiVo files with -subcc. After this no v2-only code should get compiled (yuv4mpeg_intern.h has a v2-only license, but the contents of the header look like they're not copyrightable).
* vo_corevideo: add key_modifier_alt only when pressing left option keyStefano Pigozzi2011-03-181-1/+4
|
* .gitignore: add /cpuinfoUoti Urpala2011-03-131-1/+2
| | | | | Ignore the "cpuinfo" binary. The configure script can create that on systems which lack /proc/cpuinfo or equivalent.
* vo_corevideo: fix menubar showing 2 apples on snow leopardStefano Pigozzi2011-03-111-1/+4
|
* vo_corevideo: support modifier keys in keyboard inputStefano Pigozzi2011-03-031-2/+11
|
* core: hr-seek: fix soft hang with hrseek past EOFUoti Urpala2011-03-033-2/+9
| | | | | | | | | | | | | | | | When doing a precise seek video_out->frame_loaded was left to true while frames were being skipped. However vo_get_buffered_frame() always returns success if a frame is already loaded; due to this the EOF detection in update_video() never triggered, and a hr-seek past EOF could cause a soft hang (commands were still processed and it was possible to seek again to exit the loop). This could also happen with Matroska files using ordered chapters if an underlying file was actually shorter than the chapter that was supposed to come from it. Then seeking to a timestamp after the end of the file but before the end of the chapter would trigger the bug. Fix the problem by setting frame_loaded to false when we decide to skip the frame in question.
* configure: remove --ffmpeg-source-dir help outputUoti Urpala2011-03-011-1/+0
| | | | | | | | As things currently are the --ffmpeg-source-dir option will cause a compilation failure. Maybe the video filters that depend on internal FFmpeg headers to work should be deleted completely; for now I'll remove the option from the help output as it can only confuse normal users.
* libdvdcss: drop internal libdvdcss treeUoti Urpala2011-03-0114-7437/+0
| | | | | | | | | The internal libdvdcss version was only compiled if you used internal libdvdread too; and libdvdread was not included in the sources, so that'd only happen if you manually added libdvdread in the build tree. Keeping libdvdcss for that case probably isn't worth it, so delete it from the tree. The build system part is still there, so an internal build is possible if you add the directory back.
* build: change version number generationUoti Urpala2011-02-193-7/+8
| | | | | | | Force Makefile to always run version.sh to potentially regenerate version.h. Drop compiler version and 'git-' prefix from version number. Match only git tags starting 'v'+number when generating version number; leave the 'v' out from the result.
* configure: fix --enable-libvorbis with tremor installedUoti Urpala2011-02-181-0/+2
| | | | | | Autodetected libvorbis prevented tremor test from running, but --enable-libvorbis didn't. Add an explicit check to disable tremor in that case.
* .gitignore: add /po and /localeUoti Urpala2011-02-151-0/+2
|
* terminal output: change program name to "MPlayer2"Uoti Urpala2011-02-151-1/+1
|
* codecs.conf: Add FFmpeg WC4 xan decodercehoyos2011-02-151-0/+8
| | | | | | Patch by Philip Langdale, philipl overt org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32875 b3059339-0415-0410-9bf9-f77b7e298cf2
* demux_ts: change DVB SPU format for libavcodecreimar2011-02-151-3/+4
| | | | | | | | Change DVB SPU stream format in TS demuxer so it can be decoded by libavcodec (as soon as lavc is fixed not to fail just because of an extra padding byte). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32866 b3059339-0415-0410-9bf9-f77b7e298cf2
* subs: Print a message when lavc subtitle decoding failsreimar2011-02-151-1/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32865 b3059339-0415-0410-9bf9-f77b7e298cf2
* demux_ts: DVB and PGS subtitle fixesreimar2011-02-151-6/+5
| | | | | | | | Fix r32587: the previous approach to return subtitles in time broke DVB subtitles due to returning incomplete packets and even for PGS subtitles resulted in incorrect pts values for the sub packets. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32864 b3059339-0415-0410-9bf9-f77b7e298cf2
* ad_qtaudio: fix use with the libavformat mov demuxerfaust32011-02-151-2/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32863 b3059339-0415-0410-9bf9-f77b7e298cf2
* demux_ts: Set subtitle stream type correctly for DVB subtitlesreimar2011-02-151-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32862 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanup: remove some casts of memalign() return valuediego2011-02-152-6/+6
| | | | | | | Do not pointlessly cast the return value of memalign(). memalign() returns void*, which is compatible with any pointer in C. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32850 b3059339-0415-0410-9bf9-f77b7e298cf2
* codecs.conf: add apco, ap4h, ai55, ai15 fourccscompn2011-02-151-0/+5
| | | | | | | add apco and ap4h fourcc to prores decoder add ai55 and ai15 fourcc to h264 docoders git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32843 b3059339-0415-0410-9bf9-f77b7e298cf2
* vd_mpng: libpng API update, use color type gettercboesch2011-02-151-3/+6
| | | | | | | | | | Use color type getter instead of direct access to private member. Using the getter is mandatory since recent libpng 1.5 release. Patch by Gianluigi Tiesi (mplayer - netfarm it) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32840 b3059339-0415-0410-9bf9-f77b7e298cf2
* libmpcodecs/vf_*.c: Replace memalign() by av_malloc()michael2011-02-153-8/+12
| | | | | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32834 b3059339-0415-0410-9bf9-f77b7e298cf2 Fix postprocessing and perspective filters on x86-64 (missing libavutil/mem.h include). Original patch by Reinhard Tartler git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32835 b3059339-0415-0410-9bf9-f77b7e298cf2
* stream/url.c: escape characters >= 127 in URLsreimar2011-02-151-2/+1
| | | | | | Escape character values >= 127 in URLs as required by the RFC. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32833 b3059339-0415-0410-9bf9-f77b7e298cf2
* demux_asf: add sanity checkreimar2011-02-151-0/+4
| | | | | | Check that rlen is valid before using it to increment a pointer. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32832 b3059339-0415-0410-9bf9-f77b7e298cf2
* configure: disable libmpcdec by defaultreimar2011-02-151-3/+4
| | | | | | | Disable libmpcdec (musepack) support by default, FFmpeg has a decoder that works better for us and is used by default. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32826 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanup: mplayer.c: clean up pause_loop() a bitUoti Urpala2011-02-151-11/+11
|
* terminal output: show cache fill changes in "PAUSED" messagereimar2011-02-153-6/+31
| | | | | | | | | | | Convert cache_fill_status into a function so we always get the latest state, not whatever it was after the last read. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32818 b3059339-0415-0410-9bf9-f77b7e298cf2 Update PAUSED status line with cache fill status if it changed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32819 b3059339-0415-0410-9bf9-f77b7e298cf2
* configure: remove unused maemo checkUoti Urpala2011-02-151-24/+0
| | | | | | configure had a check for some libraries specific to the maemo platform. Apparently the code which would have used the results of this check was never added. Remove the unused check.
* configure: use LINGUAS environment variable for messagesUoti Urpala2011-02-151-0/+1
| | | | | | | | Previously the default with --enable-translation was to install all language files if --language-msg was not explicitly specified. Change the default to the languages set with the --language option or LINGUAS environment variable if those are set; if neither is set then the default is still to install all message languages.
* DOCS/xml/en: remove various outdated documentationUoti Urpala2011-02-159-10952/+43
| | | | | | | | | | The XML documentation was badly outdated, with various obsolete, useless and and sometimes actively harmful advice. Delete a lot of the obsolete stuff, without spending much effort to replace it for now. In the FAQ section I removed some questions completely; in other cases I only removed the answer if I thought the entry might be worth keeping but the answer would need to be updated.
* documentation: remove Changelog, rewrite READMEUoti Urpala2011-02-153-3338/+28
| | | | | The Changelog and README files were badly out of date. Remove Changelog and replace README with a new minimal one.
* configure: abort if FFmpeg libraries are not foundUoti Urpala2011-02-081-2/+4
| | | | | | | | | | | | | | Abort if FFmpeg libraries are not found unless --disable-ffmpeg was explicitly specified. Note that even if you disable FFmpeg, libavutil and libswscale are still required and you'll need to add linker flags for them manually; I didn't try to clean up that case (few people will want to do that). Also fix the fallback test used if pkg-config doesn't find the libraries: fix wrong header name and drop forced -lavcore which isn't present in all FFmpeg versions. This shouldn't make a difference for normal use since the pkg-config test should succeed if the libraries are available.
* fix compilation with old FFmpeg versionsUoti Urpala2011-02-085-6/+25
| | | | | | | | | | | | af_lavcac3enc: use old SampleFormat names without AV_ prefix, the latter were only added in 2010-11 vd_ffmpeg: add ifdef around CODEC_ID_LAGARITH use demux_real: use ffmpeg_files/intreadwrite.h stream/http.c, stream/realrtsp/real.c: define AV_BASE64_SIZE macro for old libavutil versions lacking it
* ffmpeg_files/taglists.c: add new FFmpeg valuesUoti Urpala2011-02-051-0/+10
| | | | Updated to last FFmpeg svn version values (r26400).
* input: accept Shift modifier for Enter and Tab keysUoti Urpala2011-02-051-1/+2
| | | | | | Enter and Tab are the only named keys (rather than identified by the printable character they produce) with code below 256. Add a special case to recognize the Shift modifier with them.
* input: remove incorrect "CTRL" keyname alias for backspaceUoti Urpala2011-02-051-1/+0
| | | | | | | | | | | The keycodes.h file contains a KEY_CTRL define, then various control keys expressed as "KEY_CTRL + 0" and so on. Back in 2002 when the key name table in input.c was created this KEY_CTRL define was mistakenly interpreted as a key name, apparently confusing it with the Ctrl key (even though the input system didn't handle that key back then). As a result there was an incorrect key name entry with the same key code as backspace and name "CTRL". This incorrect entry was used when printing the name of the key. Delete it.
* x11_common: fix for reconfig with pos/xineramascreen setUoti Urpala2011-02-032-9/+9
| | | | | | | | | | | | | vo_x11_create_vo_window() only called vo_x11_update_geometry() if no window position had been specified by -geometry or -xineramascreen, to avoid overwriting the specified position with values from the existing window. However window size should be initialized to the existing window here, and setting new window title for -use-filename-title is also done in vo_x11_update_geometry() (for whatever reason, it doesn't match what else that function does). Change the code in vo_x11_create_vo_window() to always call vo_x11_update_geometry() for size variable and window title updates, but add a flag that tells it not to update position variables.
* af_lavcac3enc: fix for lavc AC-3 encoder change to float inputUoti Urpala2011-02-031-5/+26
| | | | | | | | | | | | | | | | The libavcodec AC-3 encoder was changed to use floats, and take floating point samples as input (the fixed-point version is still available under the new name "ac3_fixed"). This broke af_lavcac3enc be