libfdk-aacdec: Reduce the default decoder delay by one frame

The default error concealment method if none is set via
aacDecoder_SetParam(AAC_CONCEAL_METHOD) is set in
CConcealment_InitCommonData within the fdk-aac library
and is set to Energy Interpolation. This method requires one frame
delay to the output. To reduce the default decoder output delay and
avoid missing the last frame in file based decoding, use Noise
Substitution as the default concealment method.

Signed-off-by: Omer Osman <omer.osman@iis.fraunhofer.de>
Signed-off-by: Martin Storsjö <martin@martin.st>
x86: huffyuvdsp: Move inline assembly to init file

This avoids a link failure with MMX disabled as now code and
initialization are compiled under the same condition.
x86: Unconditionally compile blockdsp and svq1enc init files

This avoids a link failure with MMX disabled as the init functions
are referenced unconditionally.
x86: build: Only compile FDCT code if MMX is enabled

All other files containing purely inline assembly are treated the same way.
librtmp: Don't free the temp url at the end of rtmp_open

librtmp can keep pointers to this string internally, and may
use them at shutdown as well.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
vc1test: Return proper error codes

Signed-off-by: Diego Biurrun <diego@biurrun.de>
vc1test: Check malloc call

Signed-off-by: Diego Biurrun <diego@biurrun.de>
cljr: split decoder and encoder

Signed-off-by: Diego Biurrun <diego@biurrun.de>
paf: split audio and video decoder

Signed-off-by: Diego Biurrun <diego@biurrun.de>
bmv: Split audio and video decoder

Signed-off-by: Diego Biurrun <diego@biurrun.de>
dsicin: Split audio and video decoder

Signed-off-by: Diego Biurrun <diego@biurrun.de>
samplefmt: Add doxygen categories

Categorize the enum and functions as "audio-related".

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
audio_fifo: Split into a separate doxygen module

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
dsputil: Split off *_8x8basis to a separate context
dsputil: Move pix_sum, pix_norm1, shrink function pointers to mpegvideoenc
dsputil: Move draw_edges() to mpegvideoencdsp
vmd: Split audio and video decoder

Signed-off-by: Diego Biurrun <diego@biurrun.de>
smoothstreamingenc: Fix a memory leak on errors

Signed-off-by: Martin Storsjö <martin@martin.st>
libfdk-aacdec: Decode the first AAC frame to reliably identify the bitstream

For implicit signaling cases (as possible for Spectral Band Replication
and Parametric Stereo Tools), the decoder must decode the first frame to
correctly identify the stream configuration (as called from
avformat_find_stream_info). The mechanism for this is built-in and only
requires adding CODEC_CAP_CHANNEL_CONF to the libfdk-aacdec AVCodec
struct.

Signed-off-by: Omer Osman <omer.osman@iis.fraunhofer.de>
Signed-off-by: Martin Storsjö <martin@martin.st>
dsputil: Split off FDCT bits into their own context