wm4 413c6f5b30 af_scaletempo: fix crash on channel reconfiguration
This crash happened when audio channels were reconfigured from 6
channels to 2, and playback speed was set to 2.

The crash is caused by passing a negative size to memcpy. It appears
reinitialization doesn't clear the buffer. As the result, the buffer
can be larger as the maximum buffer size, i.e. the invariant
bytes_queued <= bytes_queue is violated.

Fix this by resetting the buffer length on reconfiguring (set the
bytes_queued vairable to 0). Also reset some other state for clarity
and robustness, although these changes aren't strictly needed for
avoiding the actual crash.

This may also get rid of some noise played right after reinitialization,
as the re-used buffer was in the wrong audio format.
2012-08-26 22:17:27 +02:00
2012-07-31 01:35:53 +02:00
2012-08-02 22:05:27 +02:00
2012-08-01 17:07:35 +02:00
2012-02-01 22:46:27 +02:00
2012-08-03 03:34:38 +02:00
2012-08-03 01:43:03 +02:00
2012-08-16 17:17:49 +02:00
2010-03-09 19:18:43 +02:00
2011-04-02 07:28:53 +03:00
2012-08-06 17:48:30 +02:00
2012-08-01 17:07:35 +02:00
2012-08-16 17:17:49 +02:00
2012-08-07 01:29:56 +02:00
2012-07-31 01:35:53 +02:00
2012-07-31 01:35:53 +02:00
2012-07-29 00:04:17 +02:00
2012-07-30 15:46:05 +02:00
2012-08-06 17:48:30 +02:00
2012-08-06 17:48:30 +02:00
2012-08-01 17:07:35 +02:00
2012-08-01 17:07:35 +02:00
2012-07-29 00:04:17 +02:00

Compiling with full features requires development files for several
external libraries. Below is a list of some important requirements. For
more information see the output of './configure --help' for a list of options,
or look at the list of enabled and disabled features printed after running
'./configure'. If you think you have support for some feature installed
but configure fails to detect it, the file config.log may contain information
about the reasons for the failure.

Libraries specific to particular video output methods
(you'll want at least one of VDPAU, GL or Xv):
 - libvdpau (for VDPAU output, best choice for NVIDIA cards)
 - libGL (OpenGL output)
 - libXv (XVideo output)
general:
 - libasound   (ALSA audio output)
 - various general X development libraries
 - libfreetype (for libass)
 - libfontconfig (for libass)
 - libass
 - FFmpeg libraries (libavutil libavcodec libavformat libswscale libpostproc)

Most of the above libraries are available in suitable versions on normal
Linux distributions. However FFmpeg is an exception (distro versions may be
too old to work at all or work well). For that reason you may want to use
the separately available build wrapper that first compiles FFmpeg libraries
and libass, and then compiles the player statically linked against those.
S
Description
🎥 Command line media player
Readme
184 MiB
Languages
C 88%
Lua 5.8%
Swift 2.3%
Meson 1.1%
Python 0.8%
Other 2%