lavu: add av_ctz() for trailing zero bit count
flacenc: remove wasted trailing 0 bits
flacenc: use uint64_t for bit counts

Needed to avoid integer overflows for 24-bit encoding.
flacdsp: move lpc encoding from FLAC encoder to FLACDSPContext

Also, templatize the functions for 16-bit and 32-bit sample range. This will
be used for 24-bit FLAC encoding.
flacenc: add 24-bit encoding
flacenc: use RICE2 entropy coding mode for 24-bit
FATE: rename FLAC tests from flac-* to flac-16-*

This will distinguish FLAC 16-bit tests from FLAC tests with other bit
depths.
FATE: add a 24-bit FLAC encoding test
x86: avresample: Add missing colons to assembly labels

YASM accepts labels without colons, but NASM issues warnings.
fate: aac: cosmetics: Group AAC LATM tests together
fate: atrac: Place atrac1 and atrac3 tests in different groups
libopencore-amr: Check the return value of amr_decode_fix_avctx

This allows getting rid of redundant checks later in the codec
specific init functions.

Move the check to before actually initializing the decoder lib,
to simplify error handling.

This fixes a case of returning a value from a void function, present since
d40dab907.

Signed-off-by: Martin Storsjö <martin@martin.st>
libvpxenc: Allow enabling constrained quality (CQ) mode

The CQ mode was introduced in libvpx 0.9.6.

Signed-off-by: Martin Storsjö <martin@martin.st>
x86: h264_intrapred: port to cpuflags
rtpenc_aac: Fix calculation of the header size

Previously the high end byte was always set to zero. Also get
rid of an unnecessary multiplication (which in practice couldn't
overflow) before shifting.

Signed-off-by: Martin Storsjö <martin@martin.st>
add 24-bit FLAC encoding to Changelog

Also move a misplaced line from the 9_beta2 section to <next>
avconv: rescale packet duration to muxer time base when flushing encoders

Fixes Bug 385
flacenc: ensure the order is within the min/max range in LPC order search

This fixes use of uninitialized values when the FLAC encoder uses the
2-level, 4-level, and 8-level search methods. Fixes failure of the
fate-flac-24-comp-8 test when run using valgrind.
x86: h264_qpel_10bit: port to cpuflags
x86: PALIGNR: port to cpuflags