vdpau_internal.h: Add missing include for FF_API_BUFS_VDPAU.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
vdpau: Add an allocation function for AVVDPAUContext.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Make new VDPAU easier to use by adding context to callback.

Using VDPAU correctly means checking for preemption
and possibly regenerating the context all the time.
With the current API there is no context or other
user-defined pointer and thus this in not possible
during decoding unless using some hack like global
variables.
The need to reinitialize both surfaces and even function
pointers makes handling preemption even more difficult.
This patch introduces a new render2 function that gets
both the AVCodecContext and AVFrame in addition,
in both the user can store additional opaque data.
This allows even advanced approaches like keeping a
"generation counter" for the surfaces so they can be
regenerated on the fly and efficiently.
In addition, the function has a return value that will
be passed through all the way instead of being silently
ignored as for the current render function.
Unfortunately the HWAccel API has no way of providing
API/ABI compatibility, so a currently disallowed
state (render pointer being NULL) is used to extend it.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
wmall: use AVFrame API properly

This fixes a bug with non-refcounted callers resulting in invalid memory access.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
ape: check avio_read() return value

This sets pkt->size to absurd values on failure otherwise.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec: Remove ff_packet_free_side_data, use av_packet_free_side_data

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Fix wrong use of "an" in some comments.
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  wmall: use AVFrame API properly

Conflicts:
	libavcodec/wmalosslessdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
lavfi/trim: check for right default value

Signed-off-by: Paul B Mahol <onemda@gmail.com>
ffmpeg_filter: do not pick evil path for trim filters

Signed-off-by: Paul B Mahol <onemda@gmail.com>
img2dec: fix typo (double "with with")

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pixfmt: extend description for planar YUV 9/10 bits formats

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
doc/filter_design.txt: Fix duplicate words

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
doc/filters.texi: Fix duplicate words

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ac3enc_template.c: Fix duplicate words

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ac3tab.c: Fix duplicate words

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/avcodec.h: Fix duplicate words

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/bink.c: Fix duplicate words

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/bintext.h: Fix duplicate words

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dv.c: Fix duplicate words

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