cosmetics: Align codec declarations

Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.

Signed-off-by: Martin Storsjö <martin@martin.st>
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  cosmetics: Align muxer/demuxer declarations
  mpeg12: Do not change frame_pred_frame_dct flag and demote error into a warning
  avcodec: remove avcodec_guess_channel_layout()
  avutil: Add av_get_default_channel_layout()

Conflicts:
	doc/APIchanges
	libavcodec/mpeg12.c
	libavformat/cdg.c
	libavformat/matroskaenc.c
	libavformat/mpegts.c
	libavformat/nuv.c
	libavformat/wav.c
	libavutil/audioconvert.c
	libavutil/audioconvert.h
	libavutil/avutil.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
cosmetics: Clean up the tiffenc pix_fmts declaration to match the style of others

Signed-off-by: Martin Storsjö <martin@martin.st>
asfdec: Add an option for not searching for the packet markers

Some streams don't contain these.

Signed-off-by: Martin Storsjö <martin@martin.st>
rtpdec_asf: Set the no_resync_search option for the chained asf demuxer

Searching for packet markers doesn't make sense for this use case,
where packets are fed one at a time to the demuxer.

This fixes playing back streams that have packets not starting
with the 0x82, 0x00, 0x00 marker.

Signed-off-by: Martin Storsjö <martin@martin.st>
fate: try to fix >8bit dpx reg test

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mpegpsenc: fix user specified mux rate

Fixes Ticket1175

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
put_bits: switch assert to av_assert2()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
build system: support setting avassert() assert_level

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
adpcmenc: fix encoded s_0 value.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
proresenc_anatoly: fix encoded mantissa.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
proresenc_kostya: fix encoded mantissa.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
proresenc_kostya: Mention likely ancestry in the license header.

As the encoder contained the same bug and has similar structure
to anatoliys encoder, it is possibly based on it.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
aacenc: Fix issues with huge values of bit_rate.

Do not pointlessly call ff_alloc_packet2 multiple times,
and fix an infinite loop by clamping the maximum
number of bits to target in the algorithm that does
not use lambda.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Add tests for audio encoders: aac, dca, ra144 and nellymoser.

The PSNR values are of varying usefulness, though at least
the DTS and AAC ones are useful with the right shift value.
Note: due to usage of floats some of these may fail on other
architectures.
In that case they should be converted into a CMD = stddev
FATE test, but it seems useful to try this way first.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Remove AAC and nellymoser tests that do not work.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Add AAC FATE encode tests.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
fate: try to force le for the dpx decoder side too

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavfi: port libmpcodecs remove-logo filter

The code is based on the remove-logo filter in MPlayer/libmpcodecs, by
Robert Edele, relicensed to LGPL with consent of the author.

Address trac issue #249.
lavfi/mp: remove remove_logo wrapper

removelogo has been ported to libavfilter, and the wrapper was not
working.