audio_frame_queue: Define af_queue_log_state before using it

This fixes building with DEBUG defined after the function was made
static and the prototype removed in d7f9786cbc.

Signed-off-by: Martin Storsjö <martin@martin.st>
h264: Check that the codec isn't null before accessing it

This fixes crashes introduced by 2e8f3cbcda5, the codec can be null
when called from parsers.

Signed-off-by: Martin Storsjö <martin@martin.st>
rtpdec_h264: Don't set the pixel format

There is no need for this depacketizer to set the pixel format,
the decoder can do that just fine.

Signed-off-by: Martin Storsjö <martin@martin.st>
cllc: simplify/fix swapped data buffer allocation.

Using the malloc variant avoids pointless memcpy on size
increase and simplifies handling allocation failure.
Also change code to ensure that allocation, bswap and bitstream
reader all use the same size, even when the packet size is odd
for example.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
huffman: add ff_huff_gen_len_table

The function will be used by utvideo as well.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
utvideoenc: use ff_huff_gen_len_table

Avoid code duplication and provide faster and better compression.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
sdp: Include profile-level-id for H264

This is required for playback with the Stagefright RTSP framework
on Android.

Signed-off-by: Martin Storsjö <martin@martin.st>
msvc: workaround __VA_ARGS__ missing tokenization

A second expansion forces the preprocessor to tokenize properly.
configure: probe_cc: use separate variable for linker output flag

Some tools use different command line syntax for specifying output
when compiling and linking.  To accomodate these, separate variables
must be used.  No currently supported compilers/linkers are affected
by the change.

Signed-off-by: Mans Rullgard <mans@mansr.com>
build: add separate setting for host linker

This adds new HOSTLD and related settings for host linker allowing
it to be different from HOSTCC.

Signed-off-by: Mans Rullgard <mans@mansr.com>
build: allow non-standard variations of linker -l/-L flags

This enables replacing the -l and -L flags used to specify the
just-built libraries when linking the tools and shared libs with
non-standard syntaxes.  System library flags are already handled
by the filtering mechanism in configure.

Signed-off-by: Mans Rullgard <mans@mansr.com>
build: export filtered -lz flag in config.mak

This is needed to link tools/cws2fws using a linker with non-standard
command line syntax.

Signed-off-by: Mans Rullgard <mans@mansr.com>
lavu: add snprintf(), vsnprint() and strtod() replacements for MS runtime.
converter code cleanup: Change unions into structs

This is required in order to initialize them properly without
designated initializers, until a better solution for initializing
unions is made.
converter code cleanup: Handle the OptionDef union actually being a struct
msvc: MSVC cl.exe support in configure

Use with the following configure parameters:
--cc='compilewrap cl' --ld='linkwrap link'
msvc: configure: Dont require inline asm for enabling mmx2/ssse3 in general

Since ssse3 is a dependency for avx, HAVE_AVX wasn't set at all prior
to this.
msvc: Replace some unions with designated initializers with structs

This could be handled by converting this into a runtime assignment
(possibly using an extra scope around the rest of the function from
this point onward).
msvc: Don't check for the mingw version when building using msvc