vf_pad: fix a & instead of && typo

Avoid buffer overflow in buffer_needs_copy()

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
vorbisdec: do not leak the first frame.
ratecontrol: remove an unused variable
lavc: fix get_buffer() compatibility layer for audio.

planes - FF_ARRAY_ELEMS would be evaluated as unsigned and underflow
instead of being negative as was intended.
svq1: use av_frame_free to free refcounted frame

Fixes a memleak due to avcodec_free_frame not freeing the frame data.
wmapro: unref skipped frames
ra144: check buffer size before requesting a buffer

Return an error on incomplete frames.
avframe: copy reordered_opaque in copy_props

Fixes video playback in applications still using reordered_opaque.
atomic: prefer gcc builtins over win32 atomics, if available.

The mingw win32 atomics appear to be faulty, so they should not be used
if the gcc ones are available.

Signed-off-by: Martin Storsjö <martin@martin.st>
lavc: remove disabled FF_API_AVCODEC_RESAMPLE cruft
lavc: remove disabled FF_API_LIBMPEG2 cruft
lavc: remove disabled FF_API_MMI cruft
lavc: remove disabled FF_API_SNOW cruft
lavc: remove disabled FF_API_IDCT cruft
lavf: remove disabled FF_API_CLOSE_INPUT_FILE cruft
lavf: remove disabled FF_API_APPLEHTTP_PROTO cruft
lavf: remove disabled FF_API_READ_PACKET cruft
lavf: remove disabled FF_API_INTERLEAVE_PACKET cruft
lavf: remove disabled FF_API_AV_GETTIME cruft
lavf: remove disabled FF_API_R_FRAME_RATE cruft