summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Define O_BINARY in stream/stream.h unless it is defined yet, and use itkomh2010-03-064-10/+5
| | | | | | | | | | | in other places. This removes platform specific checks and prevents repeated definitions of O_BINARY. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30850 b3059339-0415-0410-9bf9-f77b7e298cf2
* Enable ASS/SSA subtitle support in mencodergreg2010-03-055-20/+291
| | | | | | | | | | | Enable ASS/SSA rendering through libass in mencoder. This duplicates a bit of code (to parse font attachments, for example). Additionally, add a filter "fixpts" that generates PTS, simulating fixed fps. PTS generated by this filter are then used for subtitle timing. Original patch by Nicolas George. (nicolas.george normalesup.org) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30849 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make GetModuleHandle(NULL) return a valid pointer.sesse2010-03-051-5/+19
| | | | | | | | | | | Some codecs, and more recently Microsoft's CRT library, expect GetModuleHandle(NULL) to return a pointer to the program's PE header mapped in memory. Thus, just returning 0x0 or 0x1 won't do it anymore, so create a minimal PE header and return that. Patch originally by Gianluigi Tiesi ( mplayer (at) netfarm (dot) it ). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30848 b3059339-0415-0410-9bf9-f77b7e298cf2
* try to avoid returning odd slices.michael2010-03-051-1/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30847 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reuse fb_tty_fd for setting up the text area.reimar2010-03-051-11/+5
| | | | | | | | This avoids the fopen call which could end up creating a /dev/tty file if it did not exist. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30846 b3059339-0415-0410-9bf9-f77b7e298cf2
* sync with en/mplayer.1 rev. 30822jrash2010-03-051-8/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30845 b3059339-0415-0410-9bf9-f77b7e298cf2
* Partial revert of r30843.sesse2010-03-051-17/+5
| | | | | | | | | Some extra changes snuck into my commit; they'll probably be reviewed and committed to Subversion eventually, but were not part of the fix for WaitForSingleObject on thread handles. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30844 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support thread handles in WaitForSingleObject.sesse2010-03-051-5/+29
| | | | | | | | Some codecs need this for clean shutdown (as opposed to a crash); we don't really support timed wait since POSIX doesn't, but it doesn't seem necessary. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30843 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: fix vertical alignment.benoit2010-03-051-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30842 b3059339-0415-0410-9bf9-f77b7e298cf2
* libswscale: Extend the unaccelerated path of the unscaled yuv2rgb specialbenoit2010-03-053-1/+59
| | | | | | | | converter with support for rgb444 output format. Patch by Janusz Krzysztofik jkrzyszt chez tis icnet pl git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30841 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support BGR555, BGR565, RGB555 and RGB565 foreign endian output incehoyos2010-03-043-10/+28
| | | | | | | | | libswscale. Patch by Alexis Ballier, alexis D ballier A gmail git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30840 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove NUT specification stubs.diego2010-03-042-12/+0
| | | | | | | They have been obsolete for a long time and point nowhere. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30839 b3059339-0415-0410-9bf9-f77b7e298cf2
* Run script with /bin/sh instead of bash.diego2010-03-041-1/+1
| | | | | | | There is nothing bash-specific in this shell script. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30838 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make emulated Win32 critical sections thread safe.sesse2010-03-041-17/+30
| | | | | | | | | | | | | | | | | | | | Earlier, cs->locked was accessed outside the mutex to get around the problem that default pthread mutexes are not recursive (ie., you cannot do a double-lock from the same thread), causing a thread-safety problem, as both detected by Helgrind and showing up in some multithreaded codecs. The ideal solution here would be to simply use recursive pthread mutexes, but there were concerns about reduced debuggability and possibly portability. Thus, instead, rewrite the critical sections to be a simple lock count (with owner) protected by a regular mutex. Whenever a thread wants to enter the critical section and lock_count is not 0, it sleeps on a special event that tells it when the critical section is available. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30837 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Use consistent if expression syntax.diego2010-03-041-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30836 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use $() syntax instead of backticks, it is easier to nest.diego2010-03-041-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30835 b3059339-0415-0410-9bf9-f77b7e298cf2
* Clarify that ssh is not required for committing to MPlayer.diego2010-03-041-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30834 b3059339-0415-0410-9bf9-f77b7e298cf2
* Update URL for Subversion homepage.diego2010-03-041-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30833 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix crashes in CreatePalette by fixing the LOGPALETTE struct.sesse2010-03-041-2/+1
| | | | | | | | | | | CreatePalette had problems for me, and looking at the code it was quite obvious why; someone had reversed the order of the two elements of the LOGPALETTE struct, causing it to allocate and copy a bogus amount of memory. Why on earth anybody would want to do that is beyond me; whoever did it even left a comment, but it wasn't very helpful, as it crashed nevertheless. :-) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30832 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix manual reset behavior of Win32 events.sesse2010-03-041-1/+1
| | | | | | | | | | Events have a “reset” member that specify if they flag is automatically set back on read/wait. However, this was populated by bManualReset, so the flag was inverted and once an event was set, it would forever be counted as so. Fixed by inverting the flag. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30831 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix return values of WaitForSingleObject when checking an event.sesse2010-03-041-2/+2
| | | | | | | These were simply inverted compared to what they should be. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30830 b3059339-0415-0410-9bf9-f77b7e298cf2
* Define HAVE_SETMODE conditionally, and use it in stream/stream_file.c insteadkomh2010-03-042-5/+16
| | | | | | | | of platform specific predefined macros. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30829 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1. Move the macros for priority classes for OS/2 from priority.c to osdep.hkomh2010-03-042-23/+21
| | | | | | | | | | | 2. Define SetPriorityClass() and GetCurrentProcess() in osdep.h 3. Include osdep.h in priority.c This removes OS2-platform check in priority.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30828 b3059339-0415-0410-9bf9-f77b7e298cf2
* Revert r30825, it was not supposed to be committed.stefano2010-03-042-35/+18
| | | | | | | | 127.32L to me, beware when using git svn dcommit for committing stuff to svn... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30827 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fill the r, g, b values used for computing the c->pal_yuv table in thestefano2010-03-041-0/+2
| | | | | | | | | case where the source format is PIX_FMT_GRAY8. This is required as PIX_FMT_GRAY8 has been declared as a paletted format in FFmpeg r22191, fix GRAY8 -> RGB conversion. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30826 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make swscale-test take in input the name of the input and the outputstefano2010-03-042-18/+35
| | | | | | | | | | | | | | format. Make swscale-test only perform the test from the input to the output format rather than perform all. Also implement swscale-test-all.sh, for performing all the tests. Improve flexibility of the swscale-test tool, this way is simpler to perform only a subset of tests. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30825 b3059339-0415-0410-9bf9-f77b7e298cf2
* Partially revert r30645, the final output format is determined byreimar2010-03-032-2/+6
| | | | | | | | | | mpcodecs_config_vo so we need to query it afterwards. Still try to set a more sensible, codec-dependant preferred format even though it is currently ignored. Fixes bug #1659, based on patch by Andrew Wason [rectalogic rectalogic com] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30824 b3059339-0415-0410-9bf9-f77b7e298cf2
* Save the new width and height earlier so that e.g. -geometry 30x30-50-50reimar2010-03-031-4/+6
| | | | | | | | gives the correct behaviour - before placement would depend on the original movie size instead of the one scaled according to -geometry. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30823 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for specifying window position relative to right and bottomreimar2010-03-032-7/+15
| | | | | | | | screen borders with -geometry. Based on patch by Melchior FRANZ [melchior franz gmail com]. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30822 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify sscanf format strings and get rid of useless percent variable.reimar2010-03-031-4/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30821 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid very deep indentation level and RESET_GEOMETRY macro in -geometryreimar2010-03-031-39/+34
| | | | | | | parsing. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30820 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a VCD support for OS/2komh2010-03-033-1/+255
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30819 b3059339-0415-0410-9bf9-f77b7e298cf2
* Drop support for old-style DVB code.diego2010-03-027-411/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30818 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove RTSP_MUXER from libavmuxers to fix compilation with --disable-networkrectalogic2010-03-021-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30817 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add CONFIG_LSP to config.h for libavcodec compilation.diego2010-03-021-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30816 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused and useless define.reimar2010-03-011-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30815 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix memleak due to strdup'd filename not being freed.reimar2010-03-011-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30814 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move functions into proper order to avoid extra declarations.reimar2010-03-011-15/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30813 b3059339-0415-0410-9bf9-f77b7e298cf2
* Deduplicate code to set stream start_pos/end_pos.reimar2010-03-011-12/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30812 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set stream->pos correctly after seeking to a VCD title.reimar2010-03-011-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30811 b3059339-0415-0410-9bf9-f77b7e298cf2
* Ensure that cue_current_pos.track is not set to an invalid value afterreimar2010-03-011-8/+5
| | | | | | | attempting to seek to e.g. track 0. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30810 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix off-by-one error in chapter<->VCD track conversion.reimar2010-03-011-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30809 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix cue_read_toc_entry to also reject negative track numbersreimar2010-03-011-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30808 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement cue:// track switching via chapter forward/backward like for audio ↵reimar2010-03-011-0/+28
| | | | | | CDs. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30807 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix cue_vcd_get_track_end to not change the current position.reimar2010-03-011-4/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30806 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid fd_bin and fd_cue global variables.reimar2010-03-011-9/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30805 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid a global variable and a strcpy.reimar2010-03-011-6/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30804 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reindent.reimar2010-03-011-19/+19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30803 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid code duplication and excessively deep nesting in cue_find_binreimar2010-03-011-37/+32
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30802 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use sizeof instead of hardcoded size.reimar2010-03-011-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30801 b3059339-0415-0410-9bf9-f77b7e298cf2
* Documentation: Add linebreak and try to be less ambiguous.cehoyos2010-02-281-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30800 b3059339-0415-0410-9bf9-f77b7e298cf2
* Extend stream_read_line to support reading lines from UTF-16 encoded filesreimar2010-02-284-51/+153
| | | | | | | and use this to support reading UTF-16 encoded subtitle files in subreader.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30799 b3059339-0415-0410-9bf9-f77b7e298cf2
* sub_utf8 is handled as a value, not flags everywhere else, so changereimar2010-02-281-1/+1
| | | | | | | sub_utf8 & 2 to == 2. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30798 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make array describing the subtitle reader modules const.reimar2010-02-281-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30797 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move stream_read_line implementation from stream.h to stream.c,reimar2010-02-282-26/+27
| | | | | | | | it is not speed critical and the function call overhead is not relevant for its overall speed anyway. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30796 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify handling of 0-termination in stream_read_linereimar2010-02-281-3/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30795 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless cast.reimar2010-02-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30794 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use negative return values for errors in pls_read_entry to make it matchreimar2010-02-281-3/+3
| | | | | | | with the checks later on. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30793 b3059339-0415-0410-9bf9-f77b7e298cf2
* A playlist entry number of 0 is invalid for pls playlists.reimar2010-02-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30792 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improve integer overflow and realloc error handling in playlist parser.reimar2010-02-281-3/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30791 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reuse the keyframe flag from x264 instead of trying to derive it on our own.reimar2010-02-281-4/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30790 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use the KEYFRAME define instead of some magic number.reimar2010-02-282-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30789 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add cddb:// support for OS/2komh2010-02-282-0/+107
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30788 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sws_dcVec static: It is only used inside libswscale/utils.c.cehoyos2010-02-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30787 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of many ugly casts.cehoyos2010-02-281-39/+38
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30786 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make close_toolame() static, only used in ae_toolame.c.cehoyos2010-02-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30785 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for reading key events from MinGW xterm.reimar2010-02-281-1/+10
| | | | | | | | Unfortunately keys only arrive after enter was pressed and SetNamedPipeHandleState does not seem to help. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30784 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make close_twolame() static, only used in ae_twolame.c.cehoyos2010-02-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30783 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix warning "missing braces around initializer".cehoyos2010-02-271-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30782 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused functions.cehoyos2010-02-271-60/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30781 b3059339-0415-0410-9bf9-f77b7e298cf2
*