1
0
mirror of http://mpg123.de/trunk/.git synced 2025-10-23 16:48:31 +03:00
Commit Graph

523 Commits

Author SHA1 Message Date
thor
5729b3092c libout123: API v3
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4656 35dc7657-300d-0410-a2e5-dc2837fedb53
2020-04-26 12:57:50 +00:00
thor
916d465ed8 mpg123: filter metadata before printout, better handling of Unicode width
This is prompted by bug 267. The main goal was to avoid control characters
in terminal printout. Another result is the more strict handling of ID3v1
data, it being reduced to 7 bits in lack of a safe alternative.

In the best case, proper handling of UTF-8 strings should be ensured using
the system Unicode support (mbstowcs(), iswprint() and friends). Fallback
code is in place to do something sensible if that support is missing. With
the system support, widths of characters different from 1 are handled now,
as correctly as the evolving Unicode standard allows.

This has been tested on Linux only. At least on Windows, there will be
additional handling needed, I imagine configuring the terminal to acceppt
UTF-8 at all is in order.

Also, the filtering needs to be extended to file names and URLs.



git-svn-id: svn://scm.orgis.org/mpg123/trunk@4570 35dc7657-300d-0410-a2e5-dc2837fedb53
2020-01-01 20:11:37 +00:00
thor
afdf4851f6 os2 update
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4562 35dc7657-300d-0410-a2e5-dc2837fedb53
2019-12-10 09:04:18 +00:00
thor
792615f651 libout123: use SDL2 instead of old SDL if found, no code changes
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4554 35dc7657-300d-0410-a2e5-dc2837fedb53
2019-11-03 10:45:23 +00:00
thor
b3cbfe6ccb build system: fix up library dependencies, add Libs.private to .pc
This separates the dependencies of our libraries from the dependencies
of the end-user programs. For this, libcompat got split again, to
separate the libdl-using part for libout123 only. Messy, but seems to
work.

The pkg-config files now contain Libs.private to enable proper usage
of our static libs. This is mainly interesting for Windows, but also
covers libm usage on Unix.



git-svn-id: svn://scm.orgis.org/mpg123/trunk@4551 35dc7657-300d-0410-a2e5-dc2837fedb53
2019-11-01 08:13:44 +00:00
thor
98c0ab2a2c Fix dynamic build with gcc -fsanitize=address to force -ldl for dlsym().
The configure script now checks for all three functions in -ldl to avoid
being fooled by ASan pulling in dlopen(), but not dlsym(). Bugger, that.


git-svn-id: svn://scm.orgis.org/mpg123/trunk@4491 35dc7657-300d-0410-a2e5-dc2837fedb53
2019-07-22 08:01:50 +00:00
thor
a11184e1cd libsyn123, out123: working towards integrated resampler, among others
The internal resampler is enabled in the build now and the logic in out123
is reworked to accomodate for this. A number of changes done to libsyn123:

- lots of API functions to support resampler
- random number generator moved out of geiger.c
- dithering added
- syntax fixes
- SYN123_NO_SPACE introduced but not used (will vanish)

This all produces nice distortions so far. I will fix out123 soon.

Oh, and NEWS got a more explicit mention of OSS-Fuzz.


git-svn-id: svn://scm.orgis.org/mpg123/trunk@4478 35dc7657-300d-0410-a2e5-dc2837fedb53
2019-07-17 04:30:06 +00:00
thor
4e79ed703b configure fixes for Cygwin and midipix
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4457 35dc7657-300d-0410-a2e5-dc2837fedb53
2018-11-08 09:38:28 +00:00
thor
add6ac02ad out123+libsyn123: getting crazy with mixing and conversion
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4423 35dc7657-300d-0410-a2e5-dc2837fedb53
2018-02-26 00:27:43 +00:00
thor
59d3180d7e libsyn123: the first cut
Moved the wave generator code into its own library, libsyn123.

I also tried to hack the XCode and MSVC 2015 and clr projects.



git-svn-id: svn://scm.orgis.org/mpg123/trunk@4397 35dc7657-300d-0410-a2e5-dc2837fedb53
2018-02-17 21:08:35 +00:00
thor
ef154ab100 libout123: disable buffer without supported IPC mechanism (Android fix)
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4396 35dc7657-300d-0410-a2e5-dc2837fedb53
2018-02-11 01:40:41 +00:00
thor
120a8be31c libmpg123: allow mode_ext to vary for free format streams (fix bug 357)
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4377 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-11-30 07:53:03 +00:00
thor
3b34ac3b00 Merge in the hooks-for-lame branch.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4349 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-09-09 20:58:51 +00:00
thor
280538fc67 Proper xrpnt overflow fix by correctly initialising layer 3 tables, sent in by Robert Hegemann.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4335 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-08-23 12:44:08 +00:00
thor
98bbc4bd62 Update internal symbol renaming … some compat functions slipped through (libout123 module handling).
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4328 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-08-23 10:50:19 +00:00
thor
da6d1fbf1f hotfix for bug 255 (layer II buffer read overflow)
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4323 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-08-11 07:29:36 +00:00
thor
0dc2ef275f lib patchlevel
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4317 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-08-08 19:41:23 +00:00
thor
3ddbc12514 i?86-apple-darwin
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4304 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-07-19 23:24:41 +00:00
thor
fb43f7fa4f proper xrpnt work
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4295 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-07-18 07:19:18 +00:00
thor
9f4605582c Make accurate rounding the default.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4294 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-07-17 12:23:18 +00:00
thor
de193edf21 libout123: Avoid fake sense of security, remove the setuid() in wav.c
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4287 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-07-16 11:56:24 +00:00
thor
1ad1d361e1 next version shall be 1.26.0 (apart from merging fixes into 1.25.x)
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4285 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-07-12 00:41:33 +00:00
thor
e27b78ebc4 merge 1.25.2 NEWS and version
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4283 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-07-12 00:38:55 +00:00
thor
bbdc775377 sync with 1.25.1 branch
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4260 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-07-02 21:24:09 +00:00
thor
6efa2bd1b0 Duh, forgot the version number: 1.25.0
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4242 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-05-28 09:02:04 +00:00
thor
6efeae27d9 libmpg123+control_generic: Fix that failure to continue after LOADPAUSE and FORMAT by introducing mpg123_getformat2()
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4235 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-05-23 00:09:25 +00:00
thor
c1a27f7883 That overflow check was stupid, obviously for the case of sizeof(size_t)==sizeof(long). Sign needs to be checked before comparison.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4233 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-05-17 07:21:41 +00:00
taihei
ff81ea605e Remove unnecessary linker flags related to text relocations for OSX build
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4227 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-05-07 13:34:26 +00:00
thor
9e1f2ca235 it will be 1.24.1
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4226 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-05-07 13:31:52 +00:00
thor
e9bc86a7a8 Do not stumble into the i486 decoder.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4222 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-05-07 13:12:57 +00:00
thor
3575dc41ce also nable aarch64 for *BSD
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4214 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-04-14 11:51:22 +00:00
thor
6fba0ae762 a patchlevel for the armasm assembly changes
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4212 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-04-14 07:38:52 +00:00
taihei
e87ecd43f5 coreaudio: make compatible with iOS
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4209 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-03-31 16:05:05 +00:00
jon_y
7e4f6f3bb1 Attempt a horrible hack to get around static-libgcc and libtool
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4199 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-03-11 05:00:45 +00:00
thor
0345031767 silence test for artsc-config, as JonY wished
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4198 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-03-02 07:57:58 +00:00
thor
b6f8c112fb merge fix for stupid configure accident
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4197 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-03-02 07:55:48 +00:00
thor
fd483e0394 Purge the module .la files.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4171 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-02-27 00:05:01 +00:00
thor
4f54e18966 merge in the loader rework
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4140 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-01-21 21:12:06 +00:00
thor
b628753104 Fix ppc_nofpu build (bug 244).
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4136 35dc7657-300d-0410-a2e5-dc2837fedb53
2017-01-09 22:48:20 +00:00
jon_y
869e3e301f Fix windows.h detection, LoadLibrary is still broken in libout123 currently
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4123 35dc7657-300d-0410-a2e5-dc2837fedb53
2016-11-24 10:40:13 +00:00
thor
5b50727d68 first version without libltdl; needs refinement to properly support Windows platforms
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4122 35dc7657-300d-0410-a2e5-dc2837fedb53
2016-11-21 00:29:26 +00:00
thor
e770b6b399 more nagging nagging, less nagging debugging
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4115 35dc7657-300d-0410-a2e5-dc2837fedb53
2016-11-06 14:21:23 +00:00
thor
af2853ec81 Fix the module search logic that got broken by 1.23, now really
looking relative to the program binary directory again.
There is no possible fallback to the current working directory
anymore in module.c ... this is a very bad idea from a security
perspective.


git-svn-id: svn://scm.orgis.org/mpg123/trunk@4110 35dc7657-300d-0410-a2e5-dc2837fedb53
2016-11-05 17:04:05 +00:00
thor
8ea2bfea14 Adding MPG123_NO_PEEK_END and MPG123_FORCE_SEEKABLE based on patch by Bent Bisballe Nyeng <bbn@dynastrom.com>. This triggers the next feature release.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4082 35dc7657-300d-0410-a2e5-dc2837fedb53
2016-09-03 12:10:29 +00:00
thor
97f7d69153 There will be 1.23.7.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4081 35dc7657-300d-0410-a2e5-dc2837fedb53
2016-09-03 07:27:09 +00:00
thor
dfdadc972b increase that version!
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4072 35dc7657-300d-0410-a2e5-dc2837fedb53
2016-06-30 07:10:56 +00:00
thor
fbea72ab4a libout123: another fix prompted by Sandro Cumerlato, using OUT123_BAD_HANDLE as documented
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4058 35dc7657-300d-0410-a2e5-dc2837fedb53
2016-06-05 16:46:04 +00:00
thor
2c81209b72 aiming for 1.23.5
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4054 35dc7657-300d-0410-a2e5-dc2837fedb53
2016-05-25 23:32:45 +00:00
thor
8bec42cf6b libout123: Call ao->deinit() in check_output_module() for failed opening.
This avoids leaking ao->userdata for outputs that allocate that in
init_output() (like, SDL and sfifo-based friends).


git-svn-id: svn://scm.orgis.org/mpg123/trunk@4031 35dc7657-300d-0410-a2e5-dc2837fedb53
2016-05-05 09:10:52 +00:00
thor
8063845129 Another go at the ANSI/ISO C vs. POSIX extensions business, reworking the use of compatibility functions. Somewhat cleaner now, but output modules get about 1K of bloat from string/memory compat functions ...
git-svn-id: svn://scm.orgis.org/mpg123/trunk@4022 35dc7657-300d-0410-a2e5-dc2837fedb53
2016-04-12 23:24:13 +00:00