summaryrefslogtreecommitdiffstats
path: root/libaf
Commit message (Collapse)AuthorAgeFilesLines
* af_lavcresample: avoid multiple calls to av_resample_initreimar2010-11-021-2/+18
| | | | | | | | | | | | | Avoid calling av_resample_init again when the values are the same as before. The init function can be called multiple times when e.g. additional format filters are inserted, so this speeds things up. Patch by Dan Oscarsson [Dan.Oscarsson tieto com]. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31698 b3059339-0415-0410-9bf9-f77b7e298cf2 Reindent. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31699 b3059339-0415-0410-9bf9-f77b7e298cf2
* af_export: Avoid void *-arithmentic warningsreimar2010-11-021-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31608 b3059339-0415-0410-9bf9-f77b7e298cf2
* af_ladspa: Fix multiple instances of a filter typereimar2010-11-021-3/+2
| | | | | | | | Ensure that activate is called on each filter instance, even if we have e.g. multiple mono filters handling a multichannel file. Fixes one of the bugs reported as bug #1685. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31558 b3059339-0415-0410-9bf9-f77b7e298cf2
* af_extrastereo: Improve filter descriptiondiego2010-11-021-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31544 b3059339-0415-0410-9bf9-f77b7e298cf2
* af_lavcac3enc: fix assert failure "s->expect_len <= s->pending_data_size"Uoti Urpala2010-10-141-11/+11
| | | | | | | The code handling input format negotiation incorrectly used the bps value of the suggested input format instead of the format it was going to actually use. As a result the player could abort with the above assertion failure. Fix.
* af_lavcac3enc: actually enable the filter by defaultUoti Urpala2010-05-261-3/+1
| | | | | The filter was changed earlier to allow building without FFmpeg internal symbols. Make it actually available by default.
* af_lavcac3enc: make the filter work without FFmpeg internalsUoti Urpala2010-05-141-5/+20
| | | | | | | The only FFmpeg internal symbols required were some constants. Define them in the file itself instead. Also add some checks and fixes to make the code more robust and fix a potential memory corruption problem.
* Merge svn changes up to r30967Uoti Urpala2010-04-261-1/+1
|\
| * Rename get_path.[ch] --> path.[ch].diego2010-03-201-1/+1
| | | | | | | | | | | | | | These files now contain different functions related to path handling. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30943 b3059339-0415-0410-9bf9-f77b7e298cf2
| * cosmetics: Remove pointless empty lines at EOF.diego2010-02-206-13/+0
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30675 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Delete things related to old translation systemUoti Urpala2010-03-104-4/+0
| | | | | | | | | | Remove the help/ subdirectory, configure code to create toplevel help_mp.h, and all the '#include "help_mp.h"' lines from .c files.
* | Merge svn changes up to r30663Uoti Urpala2010-03-101-42/+55
|\| | | | | | | | | | | | | Conflicts: gui/cfg.c libmpcodecs/vd_dmo.c mplayer.c
| * Move code that makes the filter chain match the desired output format intoreimar2010-02-191-42/+55
| | | | | | | | | | | | | | | | | | a separate function. Call this function also from af_add, fixes audio corruption with e.g. -softvol -af format=s16be (bug #1561). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30659 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30463Uoti Urpala2010-03-091-11/+0
|\| | | | | | | | | | | Note that r30455 is wrong, that commit does not in fact change the default behavior as claimed in the commit message. It only breaks "-af-adv force=0", which was already pretty much useless though.
| * Make the code match the documentation by making higher-quality but slowerreimar2010-01-301-11/+0
| | | | | | | | | | | | | | | | audio filtering the default. This mostly means lavcresample being the default instead of plain "resample". git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30455 b3059339-0415-0410-9bf9-f77b7e298cf2
* | translations: tweak cases that relied on concatenating adjacent stringsUoti Urpala2010-03-071-15/+17
| | | | | | | | | | | | | | | | Tweak some code parts that used to rely on string literals from translation macros being concatenated with other adjacent string literals. Break up the resulting string into independently translated parts, so that the existing translations for those parts can still be used.
* | Restore collapsed whitespace in output messagesUoti Urpala2010-03-071-1/+1
| | | | | | | | | | | | | | | | | | For some reason commit e306174952d42e1cd6cc5efc50ae6bb0410501bc, which replaced translation macro names with the corresponding English strings, also collapsed multiple consecutive space characters into one. Change most of these back. In a couple of cases the amount of whitespace is important for alignment, and for the rest it at least keeps the strings closer to the existing translations.
* | Merge svn changes up to r30375Uoti Urpala2010-01-251-0/+1
|\|
| * Add a proper header for our strsep implementation so strsep willreimar2010-01-171-0/+1
| | | | | | | | | | | | | | not be used without a declaration, causing issues on 64 bit systems. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30355 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30301Uoti Urpala2010-01-254-26/+24
|\|
| * Let the format filter do the AC3 endianness conversion instead of duplicatingreimar2010-01-111-21/+7
| | | | | | | | | | | | | | the conversion code over and over. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30285 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Add support for distinguishing between little- and big-endian SPDIF AC3reimar2010-01-114-5/+14
| | | | | | | | | | | | | | and converting between both. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30283 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Add a hack to af_fmt2bits to recognize AC3 as a 16-bit format, since thisreimar2010-01-111-0/+1
| | | | | | | | | | | | | | is more correct than 8 bit for alignment purposes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30278 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Add and use AF_FORMAT_IS_AC3 macro.reimar2010-01-111-0/+2
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30276 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Revert r30170, AF_FORMAT_AC3 is supposed to be the special mask,reimar2010-01-111-1/+1
| | | | | | | | | | | | | | and should not include other parts. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30275 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30173Uoti Urpala2010-01-081-1/+1
|\|
| * Mark AC3 as 16-bit format, this simplifies alignment calculation and fixesreimar2010-01-021-1/+1
| | | | | | | | | | | | | | hwac3 with ALSA reportedly broken by r29750. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30170 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r29971Uoti Urpala2009-11-291-11/+11
|\|
| * Fix mangling of 24-bit audio during channel reorder.tack2009-11-281-11/+11
| | | | | | | | | | | | | | | | | | | | | | Only 1/3 of the samples in the buffer passed to reorder_channel_nch() were being reordered. For 8-, 16-, and 32-bit audio, the buffers could be treated as int8_t, int16_t, and int32_t respectively. 24-bit audio was being processed as int8_t, requiring iteration over n_samples*3, not n_samples. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29971 b3059339-0415-0410-9bf9-f77b7e298cf2
* | af_scaletempo: Fix delay value after changing scale to 1Uoti Urpala2009-11-221-0/+1
| | | | | | | | | | | | | | | | | | | | The scaletempo filter has a special-case check to return the samples unchanged if the current scaling factor is 1. In this case code setting af->delay wasn't run. If the scale had had a different value and then been changed to 1 as a result of a playback speed change then the delay field could have a nonzero value left, resulting in A/V sync errors. Fix by setting the delay field to 0 in the scale == 1 special case code.
* | Merge svn changes up to r29912Uoti Urpala2009-11-164-19/+196
|\|
| * Add support for 8 channel audio.tack2009-11-104-13/+195
| | | | | | | | | | | | | | | | Where 8 channel support is non-trivial (e.g. ao_dsound), at least ensure we fail gracefully. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29868 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Cosmetics: remove trailing whitespace from file.tack2009-11-101-1/+0
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29867 b3059339-0415-0410-9bf9-f77b7e298cf2
| * reorder_ch: Remove unneeded AF_CHANNEL_LAYOUT_LAVC_AAC_DEC_*tack2009-11-042-6/+1
| | | | | | | | | | | | | | All references to these values were removed r29821. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29822 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r29752Uoti Urpala2009-10-061-12/+12
|\| | | | | | | | | | | | | | | | | As part of merging subtitle-in-terminal changes make update_subtitles() only clear existing subtitles if called with the reset argument, and not try to set new ones. Later calls should set the needed new subtitles, and this change avoids some problems with trying to set subtitles when mp_property_sub() in command.c gets called from initialization code before full initialization.
| * Change libaf control ordering to make the controls unique again, ↵reimar2009-09-261-12/+12
| | | | | | | | | | | | | | | | | | (AF_CONTROL_PAN_BALANCE vs. AF_CONTROL_PLAYBACK_SPEED), put them in-order again and add a bit of padding in-between. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29718 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r29544Uoti Urpala2009-08-223-29/+30
|\|
| * Fix channel reordering when using 24-bit samples by adding breaks to casestack2009-08-191-0/+4
| | | | | | | | | | | | | | | | | | missed by r29427. Patch submitted by Shane W, shane-mplayer csy ca git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29541 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Cosmetics: adjust alignment.tack2009-08-181-3/+3
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29534 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Fix incorrect channel ordering for lavc audio codecs (specifically ffac3,tack2009-08-183-26/+23
| | | | | | | | | | | | | | | | | | ffdca, ffflac, ffaac, fftruehd). In the process, adds support for 32-bit samples. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29533 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r29455Uoti Urpala2009-07-294-5/+11
|\|
| * Replace WORDS_BIGENDIAN by HAVE_BIGENDIAN in all internal code.diego2009-07-263-5/+5
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29443 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Fix 24bit audio playback.iive2009-07-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | The reordering channels code had reoccurring bug where in switch(samplesize) block the case 3 (3 bytes) doesn't end with break; leading to execution of the next case 4 too. This mangles the already processed data and causes massive memory corruption. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29427 b3059339-0415-0410-9bf9-f77b7e298cf2
| * whitespace cosmetics: Remove all trailing whitespace.diego2009-05-1334-1324/+1324
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* | build: Readd support for code depending on FFmpeg internalsUoti Urpala2009-07-261-1/+1
| | | | | | | | | | | | | | | | Add configure option --ffmpeg-source-dir=PATH. If the user specifies this option then building code that depends on FFmpeg internals is enabled and the files files which use internal lavf headers will get them from this path. The FFmpeg libraries linked with must export needed internal symbols.
* | Remove trailing whitespace from most filesUoti Urpala2009-07-0735-1337/+1323
| |
* | Translation system changes part 2: replace macros by stringsAmar Takhar2009-07-074-24/+24
| | | | | | | | | | Replace all MSGTR_ macros in the source by the corresponding English string.
* | Translation system changes part 1: wrap translated stringsAmar Takhar2009-07-074-28/+28
| | | | | | | | | | Replace mp_msg() calls which have a translated string as the format argument with mp_tmsg and add _() around all other translated strings.
* | Merge svn changes up to r29277Uoti Urpala2009-05-081-38/+100
|\|
| * Cosmetics for r29244 to follow K&R style closely.bircoph2009-05-031-17/+17
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29245 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Support for libbs2b ver. 3.0.0 API.bircoph2009-05-031-20/+82
| | | | | | | | | | | | | | | | Now filter parameters are highly controllable, virtually all audio formats are supported, and new profiles are available. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29244 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r29134Uoti Urpala2009-04-022-4/+216
|\|
| * Use native endian float filter provided by libbs2b instead ofbircoph2009-04-021-5/+2
| | | | | | | | | | | | | | selection based on WORDS_ENDIAN. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29134 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Add libbs2b audio filter itself.bircoph2009-04-022-0/+219
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29132 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Remove unnecessary malloc.h #includes and related #ifdeffery.diego2009-04-021-4/+0
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29126 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r29117Uoti Urpala2009-04-0120-216/+152
|\|
| * Move config.h include directive up as a precaution measure.bircoph2009-03-281-1/+2
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29091 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Reorder includes alphabetically.bircoph2009-03-281-2/+2
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29090 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Remove af_mp.h and add its content to af.hbircoph2009-03-282-34/+8
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29089 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Remove af_msg special-casing API in libaf.bircoph2009-03-2820-180/+141
| | | | | | | | | | | | | | Replace it by standard mp_msg message system. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29088 b3059339-0415-0410-9bf9-f77b7e298cf2
| * cosmetics: Remove file names from file header, it only causes trouble.diego2009-03-151-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28959 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r28862Uoti Urpala2009-03-071-15/+21
|