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>
x86: avcodec: Drop silly "_sse" suffixes from filenames
x86: avcodec: Drop silly "_mmx" suffixes from filenames
sdp: Use static const char arrays instead of pointers to strings

Signed-off-by: Martin Storsjö <martin@martin.st>
ffmpeg: count finished streams for last stats line.

Otherwise, all streams are finished and the time is nonsensical.
ismindex: Include direct.h for _mkdir on windows

The Windows SDK in MSVC doesn't have mkdir, only _mkdir, and
MSDN says one should include direct.h to use it.

Signed-off-by: Martin Storsjö <martin@martin.st>
qt-faststart: Use other seek/tell functions on MSVC than on mingw

Signed-off-by: Martin Storsjö <martin@martin.st>
testprogs: Remove unused includes

Signed-off-by: Martin Storsjö <martin@martin.st>
tools: Include io.h for open/read/write/close if unistd.h doesn't exist

Signed-off-by: Martin Storsjö <martin@martin.st>
graph2dot: Use the fallback getopt implementation if needed

Signed-off-by: Martin Storsjö <martin@martin.st>
yuv2rgb: handle line widths that are not a multiple of 4.

This introduces support for width%4==2 in addition to width%4==0. For
odd widths, some more checks are needed, since the current code always
handles two luma items in a row, thus there is a possibility of an
overread by one.
Add 'rw_timeout' into URLContext

If set non-zero, limits duration of retry_transfer_wrapper() loop, thus
affects ffurl_read*(), ffurl_write()
Measured in microseconds.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
x86: mpegvideoenc: Do not abuse HAVE_ variables for template instantiation

This avoids trouble if HAVE_ variables are used elsewhere in the file.
configure: support Bitrig OS

Signed-off-by: Diego Biurrun <diego@biurrun.de>