opencl: Make init_mtx static with volatile lock

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
hevcdsp: include stddef.h for ptrdiff_t definition

Including stdint.h was enough for systems like Mingw, but apparently not for Linux.
This should fix make checkheaders failures on every platform

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avfilter/vf_removelogo: fix memleak on failure

Fixes CID751770

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Add missing "const" to pointer arrays.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
ffserver: don't leak poll_table if poll fails

Should fix Coverity Scan issue #732265

Signed-off-by: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
libmpcodecs/vf_uspp: check avcodec_open() return code

Fixes CID1135747

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avformat/mpegtsenc: fix minor typo in omit_video_pes_length description

Signed-off-by: Aman Gupta <ffmpeg@tmm1.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavc/on2avc: silent warnings about const params

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
configure: Fix floating point conformance ith icl.

Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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>
avcodec/cinepakenc: use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>