platform/upstream/libav.git
10 years agortmphttp: Check for both 0 and AVERROR_EOF
Valeriy Argunov [Fri, 15 Nov 2013 17:33:43 +0000 (00:33 +0700)]
rtmphttp: Check for both 0 and AVERROR_EOF

This makes RTMPT work again - it was broken by 5d876be87a.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agompegvideo_enc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
mpegvideo_enc: use the AVFrame API properly.

10 years agoffv1: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
ffv1: use the AVFrame API properly.

10 years agojpegls: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
jpegls: use the AVFrame API properly.

10 years agohuffyuv: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
huffyuv: use the AVFrame API properly.

10 years agolibxvid: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
libxvid: use the AVFrame API properly.

10 years agopcxenc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
pcxenc: use the AVFrame API properly.

10 years agoroqvideo: remove unused variables
Anton Khirnov [Sat, 9 Nov 2013 13:57:55 +0000 (14:57 +0100)]
roqvideo: remove unused variables

10 years agolibschroedingerenc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
libschroedingerenc: use the AVFrame API properly.

10 years agoeatgv: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
eatgv: use the AVFrame API properly.

10 years agolibxavs: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
libxavs: use the AVFrame API properly.

10 years agonuv: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
nuv: use the AVFrame API properly.

10 years agoflashsvenc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
flashsvenc: use the AVFrame API properly.

10 years agodnxhdenc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
dnxhdenc: use the AVFrame API properly.

10 years agolibx264: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
libx264: use the AVFrame API properly.

10 years agosvq1enc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
svq1enc: use the AVFrame API properly.

10 years agogif: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
gif: use the AVFrame API properly.

10 years agosunrastenc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
sunrastenc: use the AVFrame API properly.

10 years agotargaenc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
targaenc: use the AVFrame API properly.

10 years agotiffenc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
tiffenc: use the AVFrame API properly.

10 years agopngenc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
pngenc: use the AVFrame API properly.

10 years agolclenc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
lclenc: use the AVFrame API properly.

10 years agoqtrleenc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
qtrleenc: use the AVFrame API properly.

10 years agoulti: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
ulti: use the AVFrame API properly.

10 years agovc1: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
vc1: use the AVFrame API properly.

10 years agoflashsv: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
flashsv: use the AVFrame API properly.

10 years agoeamad: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
eamad: use the AVFrame API properly.

10 years agodpxenc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
dpxenc: use the AVFrame API properly.

10 years agobmpenc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
bmpenc: use the AVFrame API properly.

10 years agosgienc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
sgienc: use the AVFrame API properly.

10 years agomss4: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
mss4: use the AVFrame API properly.

10 years agomss3: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
mss3: use the AVFrame API properly.

10 years agomss2: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
mss2: use the AVFrame API properly.

10 years agomss1: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
mss1: use the AVFrame API properly.

10 years agotiertexseqv: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
tiertexseqv: use the AVFrame API properly.

10 years agosmc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
smc: use the AVFrame API properly.

10 years agotruemotion2: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
truemotion2: use the AVFrame API properly.

10 years agotruemotion1: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
truemotion1: use the AVFrame API properly.

10 years agofraps: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
fraps: use the AVFrame API properly.

10 years agorpza: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
rpza: use the AVFrame API properly.

10 years agomotionpixels: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
motionpixels: use the AVFrame API properly.

10 years agovmdvideo: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
vmdvideo: use the AVFrame API properly.

10 years agovmnc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
vmnc: use the AVFrame API properly.

10 years agoxan: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
xan: use the AVFrame API properly.

10 years agoxxan: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
xxan: use the AVFrame API properly.

10 years agozerocodec: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
zerocodec: use the AVFrame API properly.

10 years agozmbvenc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
zmbvenc: use the AVFrame API properly.

10 years agoflicvideo: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
flicvideo: use the AVFrame API properly.

10 years agosmacker: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
smacker: use the AVFrame API properly.

10 years agommvideo: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
mmvideo: use the AVFrame API properly.

10 years agokgv1: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
kgv1: use the AVFrame API properly.

10 years agoindeo2: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
indeo2: use the AVFrame API properly.

10 years agoiff: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
iff: use the AVFrame API properly.

10 years agomsrle: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
msrle: use the AVFrame API properly.

10 years agoFATE: add a jv test
Anton Khirnov [Sat, 9 Nov 2013 10:07:40 +0000 (11:07 +0100)]
FATE: add a jv test

10 years agojvdec: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
jvdec: use the AVFrame API properly.

10 years agodxa: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
dxa: use the AVFrame API properly.

10 years agoqpeg: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
qpeg: use the AVFrame API properly.

10 years agocin video: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
cin video: use the AVFrame API properly.

10 years agomsvideo1: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
msvideo1: use the AVFrame API properly.

10 years agoescape124: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
escape124: use the AVFrame API properly.

10 years agoqtrle: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
qtrle: use the AVFrame API properly.

10 years agocljr: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
cljr: use the AVFrame API properly.

10 years agocinepak: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
cinepak: use the AVFrame API properly.

10 years agocdxl: remove an unused variable
Anton Khirnov [Sat, 9 Nov 2013 09:35:11 +0000 (10:35 +0100)]
cdxl: remove an unused variable

10 years agoc93: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
c93: use the AVFrame API properly.

10 years agobethsoftvid: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
bethsoftvid: use the AVFrame API properly.

10 years agoavs: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
avs: use the AVFrame API properly.

10 years agoasvenc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
asvenc: use the AVFrame API properly.

10 years agoa64multienc: use the AVFrame API properly.
Anton Khirnov [Sat, 9 Nov 2013 09:14:46 +0000 (10:14 +0100)]
a64multienc: use the AVFrame API properly.

10 years agolavc: deprecate avcodec_alloc_frame().
Anton Khirnov [Sat, 9 Nov 2013 09:09:21 +0000 (10:09 +0100)]
lavc: deprecate avcodec_alloc_frame().

10 years agoReplace all instances of avcodec_alloc_frame() with av_frame_alloc().
Anton Khirnov [Sat, 9 Nov 2013 09:05:22 +0000 (10:05 +0100)]
Replace all instances of avcodec_alloc_frame() with av_frame_alloc().

10 years agolavc: update coded_frame doxy.
Anton Khirnov [Mon, 4 Nov 2013 11:56:21 +0000 (12:56 +0100)]
lavc: update coded_frame doxy.

It is not used during decoding anymore.

10 years agolavc: deprecate CODEC_CAP_NEG_LINESIZES
Anton Khirnov [Mon, 4 Nov 2013 11:07:24 +0000 (12:07 +0100)]
lavc: deprecate CODEC_CAP_NEG_LINESIZES

It was never used in any codec since it was added 3 years ago.

10 years agolavc: VP9 decoder
Ronald S. Bultje [Tue, 1 Oct 2013 03:03:30 +0000 (23:03 -0400)]
lavc: VP9 decoder

Originally written by Ronald S. Bultje <rsbultje@gmail.com> and
Clément Bœsch <u@pkh.me>

Further contributions by:
Anton Khirnov <anton@khirnov.net>
Diego Biurrun <diego@biurrun.de>
Luca Barbato <lu_zero@gentoo.org>
Martin Storsjö <martin@martin.st>

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agolavc: Edge emulation with dst/src linesize
Ronald S. Bultje [Mon, 14 Oct 2013 01:13:10 +0000 (03:13 +0200)]
lavc: Edge emulation with dst/src linesize

Allow supporting files for which the image stride is smaller than
the maximum block size + number of subpel mc taps, e.g. a 64x64 VP9
file or a 16x16 VP8 file with -fflags +emu_edge.

10 years agodv: Split DV data table declarations into their own header
Diego Biurrun [Sun, 10 Nov 2013 17:05:39 +0000 (18:05 +0100)]
dv: Split DV data table declarations into their own header

This is necessary to avoid target config settings bleeding into the host
compilation process with hardcoded tables and the DV VLC tables no longer
present as static tables in a header file.

10 years agobuild: Allow specifying extra object files when linking HOSTPROGS
Diego Biurrun [Sun, 10 Nov 2013 21:19:07 +0000 (22:19 +0100)]
build: Allow specifying extra object files when linking HOSTPROGS

10 years agoh264: free the tables and uninitialize the context on flush
Anton Khirnov [Mon, 4 Nov 2013 16:59:25 +0000 (17:59 +0100)]
h264: free the tables and uninitialize the context on flush

Prevents referencing empty frames when the first packet after the flush
does not contain a frame.

10 years agolavf: improve support for AVC-Intra files.
Reimar Döffinger [Wed, 26 Sep 2012 10:13:53 +0000 (12:13 +0200)]
lavf: improve support for AVC-Intra files.

Generate extradata with SPS/PPS based on container dimensions.

Authors of this commit are: Reimar and Thomas Mundt

Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agomxfdec: update current edit unit when seeking in mxf files without index tables
Marton Balint [Wed, 10 Apr 2013 23:09:40 +0000 (01:09 +0200)]
mxfdec: update current edit unit when seeking in mxf files without index tables

Fixes audio packet pts values in some files generated by AVID TRMG 3.01.

Signed-off-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years agompeg12dec: Remove outdated UV swapping code for VCR2
Diego Biurrun [Wed, 13 Nov 2013 17:44:25 +0000 (18:44 +0100)]
mpeg12dec: Remove outdated UV swapping code for VCR2

10 years agotwinvq: consume block_align+1 packets as full ones
Kostya Shishkov [Sun, 20 Oct 2013 14:30:54 +0000 (16:30 +0200)]
twinvq: consume block_align+1 packets as full ones

They can be produced by VQF.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years agotwinvq: support multiple frames per packet
Kostya Shishkov [Sun, 20 Oct 2013 14:15:03 +0000 (16:15 +0200)]
twinvq: support multiple frames per packet

Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years agometasound: add missing modes
Kostya Shishkov [Thu, 29 Aug 2013 17:24:23 +0000 (19:24 +0200)]
metasound: add missing modes

Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years agompeg12dec: Remove unused swap_uv member from Mpeg1Context
Diego Biurrun [Wed, 13 Nov 2013 17:44:24 +0000 (18:44 +0100)]
mpeg12dec: Remove unused swap_uv member from Mpeg1Context

10 years agoMove av_fast_{m,re}alloc from lavc to lavu.
Anton Khirnov [Sun, 27 Oct 2013 21:21:59 +0000 (22:21 +0100)]
Move av_fast_{m,re}alloc from lavc to lavu.

10 years agolavc: deprecate FF_MAX_B_FRAMES
Anton Khirnov [Sun, 27 Oct 2013 15:46:01 +0000 (16:46 +0100)]
lavc: deprecate FF_MAX_B_FRAMES

We should not arbitrarily decide the maximum B-frame number for all
encoders supported by Libav, each encoder should be able to set its own
limits.

10 years agolavc: move MB_TYPE_* macros from avcodec.h to mpegvideo.h
Anton Khirnov [Sun, 27 Oct 2013 15:35:32 +0000 (16:35 +0100)]
lavc: move MB_TYPE_* macros from avcodec.h to mpegvideo.h

They are mpegvideo-specific and not supposed to be used by callers.

10 years agolavc: schedule unused FF_QSCALE_TYPE_* for removal on next bump
Anton Khirnov [Sun, 27 Oct 2013 15:30:38 +0000 (16:30 +0100)]
lavc: schedule unused FF_QSCALE_TYPE_* for removal on next bump

10 years agolavc: make error_rate a private option of mpegvideo encoders
Anton Khirnov [Sun, 27 Oct 2013 12:51:16 +0000 (13:51 +0100)]
lavc: make error_rate a private option of mpegvideo encoders

10 years agovdpau: add a constructor for AVVDPAUContext.
Anton Khirnov [Sat, 2 Nov 2013 21:01:14 +0000 (22:01 +0100)]
vdpau: add a constructor for AVVDPAUContext.

We will likely want to add new fields to it in the future, so this is
needed to avoid breaking ABI.

10 years agovdpau: add a convenience function for getting a decoder profile.
Anton Khirnov [Fri, 1 Nov 2013 17:37:47 +0000 (18:37 +0100)]
vdpau: add a convenience function for getting a decoder profile.

Based on the code by Rémi Denis-Courmont <remi@remlab.net> from VLC.

10 years agoDeprecate obsolete XvMC hardware decoding support
Diego Biurrun [Tue, 5 Nov 2013 07:16:31 +0000 (08:16 +0100)]
Deprecate obsolete XvMC hardware decoding support

XvMC has long ago been superseded by newer acceleration APIs, such as
VDPAU, and few downstreams still support it. Furthermore XvMC is not
implemented within the hwaccel framework, but requires its own specific
code in the MPEG-1/2 decoder, which is a maintenance burden.

10 years agoRemove all Alpha architecture optimizations
Diego Biurrun [Wed, 13 Nov 2013 19:39:56 +0000 (20:39 +0100)]
Remove all Alpha architecture optimizations

Alpha has been end-of-lifed and no more test machines are available.

10 years agoconfigure: Check whether MSVC requires using the C89-to-C99 converter
Martin Storsjö [Mon, 4 Nov 2013 13:46:34 +0000 (15:46 +0200)]
configure: Check whether MSVC requires using the C89-to-C99 converter

MSVC does support enough of C99 to work without the converter since
the 2013 version. Try to detect which version of the compiler in
the path needs to run the C99 converter or not. When the converter
is omitted, compilation time is reduced quite drastically.

Prior to this, users could still use --cc="c99conv -noconv cl"
when running MSVC 2013 to achieve the same.

This checks the version number instead of doing a normal compile
test, since this check needs to be done earlier in configure, before
the normal compile test helpers are usable.

Signed-off-by: Martin Storsjö <martin@martin.st>
10 years agompegaudioenc: Move some static tables to MpegAudioContext
Diego Biurrun [Mon, 4 Nov 2013 20:14:03 +0000 (21:14 +0100)]
mpegaudioenc: Move some static tables to MpegAudioContext

This reduces global state and the amount of globally visible tables.

10 years agompegaudioenc: Remove broken integer-only quantization code path
Diego Biurrun [Sat, 9 Nov 2013 13:17:16 +0000 (14:17 +0100)]
mpegaudioenc: Remove broken integer-only quantization code path

10 years agohwaccel: Simplify ff_find_hwaccel
Luca Barbato [Sat, 9 Nov 2013 16:07:34 +0000 (17:07 +0100)]
hwaccel: Simplify ff_find_hwaccel

It is always called by passing fields from an AVCodecContext.

10 years agoavienc: drop the vfr flag.
Anton Khirnov [Thu, 7 Nov 2013 21:02:00 +0000 (22:02 +0100)]
avienc: drop the vfr flag.

AVI does not really support vfr properly, only by padding with null
packets.