rtmpproto: Check the buffer sizes when copying app/playpath strings

As pointed out by Reimar Döffinger.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
pcm-dvd: Fix 20bit decoding

Increment the pointer as needed.

Bug-Id: 592

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
lavc: Add an internal wrapper around get_format()

It will be useful in the following commits.
lavc: set AVCodecContext.hwaccel in ff_get_format()

This way each decoder does not have to do the same thing manually.
lavc: document which parts of AVHWAccel are private.
hwaccel: Rename priv_data_size to frame_priv_data_size

This describes more accurately what this field is for.
hwaccel: Support specific frame allocators

It would reduce the boilerplate code users have to write.
lavc: Add hwaccel private data and init/uninit callbacks
lavu: Add a pixel format for new VDA hwaccel

The current hwaccel is broken and cannot be fixed in a compatible
way. It will be deprecated and replaced with a new one.
vda: use hwaccel private data for internal bitstream buffer
lavc: Add new VDA hwaccel

It leverages the new hwaccel 1.2 features:

- get_buffer2 is never called
- the internal context is automatically initialized/deinitialized

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
avconv: Support VDA hwaccel

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
aarch64: assembler in clang-3.4 ignores the division by two

Values are positive powers of two, so just replace it with right shift.
build: handle library dependencies in configure

Instead of setting FFLIBS in each library Makefile configure
exports FFLIBS-$library in config.mak.
lavf: properly document the distinction between flags and ctx_flags
build: do not append $(FFLIBS-) to $(FFLIBS) if $(NAME) is not defined

Avoids including disabled library Makefiles.
WIP: av_copy_packet()
WIP: lavf/gif
WIP: lavc/gif
WIP: use av_packet_ref()/unref()