dsputil_alpha.h: Add missing stddef.h header to fix standalone compilation
lavc: change type of AVFrame.channels field from int64_t to int

"channels" is an int in all the other places in the libraries, and the
av_frame_*_channels() accessors return and set an int, so this should not
implicate ABI breaks.
lavfi/abuffersink: add sample_rates field to AVABufferSinkParams

Allow to select sample rates.
lavfi/abuffersink: fix weird indent and spacing
ffplay: set type for channel_layout AudioParams field to int64_t

Reflect the type of the corresponding field in lavc/lavfi.
ffplay: reindent and remove pointless cast in audio_decode_frame() code
ffmpeg: Force a first_pts of 0 for the first configuration of -async use

This is very close to what the default does currently

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
fate: force a first_pts=0 for the aresample test

This is needed to prevent the next commit from breaking fate

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
swr: make the default of nopts for first_pts actually work

Fixes Ticket2210

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
af_biquads: memset(0) cache

Fixes valgrind warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
vorbisdec: Error on bark_map_size equal to 0.

The value is used to calculate output LSP curve and a division by zero
and out of array accesses would occur.

CVE-2013-0894

CC: libav-stable@libav.org

Reported-by: Dale Curtis <dalecurtis@chromium.org>
Found-by: inferno@chromium.org
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
vorbisdec: cosmetics

Use the commonly used "if (!var)" instead of "if (var == 0)".
vorbisdec: Add missing checks

Rate and order must not be 0 even if the specification does not say that
explicitly.
vorbisdec: Accept 0 amplitude_bits

The specification does not prevent an encoder to write the amplitude 0
as 0 amplitude_bits.

Our get_bits() implementation might not support a zero sized read
properly, thus the additional branch.
Merge commit '11dcecfcca0eca1a571792c4fa3c21fb2cfddddc'

* commit '11dcecfcca0eca1a571792c4fa3c21fb2cfddddc':
  vorbisdec: Error on bark_map_size equal to 0.
  dsputil_alpha.h: Add missing stddef.h header to fix standalone compilation

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit 'fc386f2eea8d93ecd4f81e1646c835d1645c56a0'

* commit 'fc386f2eea8d93ecd4f81e1646c835d1645c56a0':
  vorbisdec: cosmetics

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge commit '5b47c19bfda92273ae49e83db26a565afcaed80a'

* commit '5b47c19bfda92273ae49e83db26a565afcaed80a':
  vorbisdec: Add missing checks

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  vorbisdec: Accept 0 amplitude_bits

Merged-by: Michael Niedermayer <michaelni@gmx.at>
lavfi/geq: improve support for formats with alpha plane

Signed-off-by: Paul B Mahol <onemda@gmail.com>
lavfi/hflip: support more formats

Signed-off-by: Paul B Mahol <onemda@gmail.com>