4 years agolavfi: Make default get_video_buffer work with hardware frames
Mark Thompson [Mon, 31 Oct 2016 22:14:04 +0000 (22:14 +0000)]
lavfi: Make default get_video_buffer work with hardware frames

4 years agodoc: Turn off noisy deprecation warnings in the option printer
Diego Biurrun [Fri, 4 Dec 2015 11:43:10 +0000 (12:43 +0100)]
doc: Turn off noisy deprecation warnings in the option printer

4 years agortmpproto: Restructure zlib code to avoid unreachable code warning
Diego Biurrun [Thu, 29 Oct 2015 12:39:49 +0000 (13:39 +0100)]
rtmpproto: Restructure zlib code to avoid unreachable code warning

libavformat\rtmpproto.c(1165) : warning C4702: unreachable code

4 years agobink: Have function pointer prototype match implementation
Diego Biurrun [Thu, 12 Mar 2015 23:38:57 +0000 (00:38 +0100)]
bink: Have function pointer prototype match implementation

libavcodec/binkdsp.c(156) : warning C4028: formal parameter 1 different from declaration

4 years agoidct: Have function pointer prototype match implementation
Diego Biurrun [Thu, 12 Mar 2015 23:35:37 +0000 (00:35 +0100)]
idct: Have function pointer prototype match implementation

libavcodec/idctdsp.c(175) : warning C4028: formal parameter 2 different from declaration

4 years agoaactab: Move extern keyword to the front of array declarations
Diego Biurrun [Mon, 9 Nov 2015 12:25:55 +0000 (13:25 +0100)]
aactab: Move extern keyword to the front of array declarations

libavcodec/aactab.h:49:1: warning: ‘extern’ is not at beginning of declaration [-Wold-style-declaration]

4 years agovf_drawtext: Move static keyword to beginning of variable declaration
Diego Biurrun [Fri, 30 Oct 2015 14:02:04 +0000 (15:02 +0100)]
vf_drawtext: Move static keyword to beginning of variable declaration

libavfilter/vf_drawtext.c:226:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]

4 years agoexamples/decode_video: remove a stray unrelated comment
Anton Khirnov [Thu, 20 Oct 2016 09:03:20 +0000 (11:03 +0200)]
examples/decode_video: remove a stray unrelated comment

4 years agoexamples/decode_video: constify the AVCodec instance
Anton Khirnov [Thu, 20 Oct 2016 09:03:20 +0000 (11:03 +0200)]
examples/decode_video: constify the AVCodec instance

4 years agoexamples/encode_video: use the AVFrame API for allocating the frame
Anton Khirnov [Thu, 20 Oct 2016 09:03:20 +0000 (11:03 +0200)]
examples/encode_video: use the AVFrame API for allocating the frame

It is more efficient and so preferred over allocating the buffers

4 years agoexamples/encode_video: set the framerate
Anton Khirnov [Thu, 20 Oct 2016 09:03:20 +0000 (11:03 +0200)]
examples/encode_video: set the framerate

4 years agoexamples/encode_video: constify the AVCodec instance
Anton Khirnov [Thu, 20 Oct 2016 09:03:20 +0000 (11:03 +0200)]
examples/encode_video: constify the AVCodec instance

4 years agoexamples/avcodec: split the remaining two examples into separate files
Anton Khirnov [Wed, 19 Oct 2016 19:05:22 +0000 (21:05 +0200)]
examples/avcodec: split the remaining two examples into separate files

4 years agoexamples/decode_audio: constify the AVCodec instance
Anton Khirnov [Wed, 19 Oct 2016 19:56:22 +0000 (21:56 +0200)]
examples/decode_audio: constify the AVCodec instance

4 years agoexamples/avcodec: split audio decoding into a separate example
Anton Khirnov [Wed, 19 Oct 2016 19:05:22 +0000 (21:05 +0200)]
examples/avcodec: split audio decoding into a separate example

The four examples (audio/video encoding/decoding) are completely
independent so it makes little sense to have them all in one file.

4 years agoexamples/encode_audio: use the AVFrame API for allocating the data
Anton Khirnov [Wed, 19 Oct 2016 19:21:08 +0000 (21:21 +0200)]
examples/encode_audio: use the AVFrame API for allocating the data

It is simpler and more efficient.

4 years agoexamples/encode_audio: constify AVCodec instances
Anton Khirnov [Wed, 19 Oct 2016 19:07:43 +0000 (21:07 +0200)]
examples/encode_audio: constify AVCodec instances

4 years agoexamples/avcodec: split audio encoding into a separate example
Anton Khirnov [Wed, 19 Oct 2016 19:05:22 +0000 (21:05 +0200)]
examples/avcodec: split audio encoding into a separate example

The four examples (audio/video encoding/decoding) are completely
independent so it makes little sense to have them all in one file.

4 years agoavconv: support parsing bitstream filter options
James Almer [Sat, 29 Oct 2016 00:44:51 +0000 (21:44 -0300)]
avconv: support parsing bitstream filter options

Example usage:

avconv -i INPUT -bsf filter[=opt1=val1:opt2=val2] OUTPUT

Signed-off-by: James Almer <>
Signed-off-by: Anton Khirnov <>
4 years agomov: Evaluate the movie display matrix
Vittorio Giovara [Mon, 24 Oct 2016 21:46:47 +0000 (17:46 -0400)]
mov: Evaluate the movie display matrix

This matrix needs to be applied after all others have (currently only
display matrix from trak), but cannot be handled in movie box, since
streams are not allocated yet. So store it in main context, and apply
it when appropriate, that is after parsing the tkhd one.

Fate tests are updated accordingly.

Signed-off-by: Vittorio Giovara <>
4 years agofate: Add tests for mov display matrix
Vittorio Giovara [Mon, 24 Oct 2016 21:22:55 +0000 (17:22 -0400)]
fate: Add tests for mov display matrix

Rotation, sample/display aspect ratio and pure matrix export.

Signed-off-by: Vittorio Giovara <>
4 years agoavprobe: Add -show_stream_entry to get a single stream property
Vittorio Giovara [Mon, 24 Oct 2016 21:22:54 +0000 (17:22 -0400)]
avprobe: Add -show_stream_entry to get a single stream property

This is needed for improved fate testing and it is modeled after
-show_format_entry. The main behavioral difference is that when a print
function is called with an empty key, rather than discarding it, the
closes key in the hierarchy is used instead.

Signed-off-by: Vittorio Giovara <>
4 years agoopenssl: Allow newer TLS versions than TLSv1
Mark Thompson [Sun, 30 Oct 2016 14:57:30 +0000 (14:57 +0000)]
openssl: Allow newer TLS versions than TLSv1

The use of TLSv1_*_method() disallows newer protocol versions; instead
use SSLv23_*_method() and then explicitly disable the deprecated
protocol versions which should not be supported.

4 years agoxcb: Add all the libraries to the link line explicitly
Luca Barbato [Sun, 30 Oct 2016 16:44:49 +0000 (17:44 +0100)]
xcb: Add all the libraries to the link line explicitly

Avoid an underlink issue on recent distributions.

4 years agoRevert "rtmpproto: Don't include a client version in the unencrypted C1 handshake"
Luca Barbato [Sun, 30 Oct 2016 13:52:45 +0000 (14:52 +0100)]
Revert "rtmpproto: Don't include a client version in the unencrypted C1 handshake"

This reverts commit 7d8d726be7dc46343ab1c98c339c1ed44bcb07c1.

4 years agoqsv: Be informative when reporting that no data has been consumed
Luca Barbato [Sat, 29 Oct 2016 15:00:20 +0000 (17:00 +0200)]
qsv: Be informative when reporting that no data has been consumed

4 years agoUse avpriv_request_sample() where appropriate
Diego Biurrun [Wed, 16 Dec 2015 17:02:04 +0000 (18:02 +0100)]
Use avpriv_request_sample() where appropriate

4 years agodash: Use correct ISO C scanf conversion specifier
Diego Biurrun [Sun, 3 Jan 2016 19:31:13 +0000 (20:31 +0100)]
dash: Use correct ISO C scanf conversion specifier

4 years agosrt: Adjust signedness of sscanf format strings
Diego Biurrun [Wed, 11 Nov 2015 16:40:27 +0000 (17:40 +0100)]
srt: Adjust signedness of sscanf format strings

Fixes several warnings from -Wformat.

4 years agodxtory: Drop nonsense ISO C printf conversion specifiers for standard types
Diego Biurrun [Mon, 11 Jan 2016 14:46:46 +0000 (15:46 +0100)]
dxtory: Drop nonsense ISO C printf conversion specifiers for standard types

4 years agoUse ISO C printf conversion specifiers where appropriate
Diego Biurrun [Fri, 11 Dec 2015 16:29:11 +0000 (17:29 +0100)]
Use ISO C printf conversion specifiers where appropriate

4 years agohap: Adjust printf length modifiers to match variable types
Diego Biurrun [Tue, 8 Dec 2015 14:57:04 +0000 (15:57 +0100)]
hap: Adjust printf length modifiers to match variable types

libavcodec/hapenc.c:121:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t {aka unsigned int}’ [-Wformat=]
libavcodec/hapenc.c:121:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t {aka unsigned int}’ [-Wformat=]

4 years agoAdjust printf conversion specifiers to match variable signedness
Diego Biurrun [Tue, 15 Dec 2015 09:50:18 +0000 (10:50 +0100)]
Adjust printf conversion specifiers to match variable signedness

4 years agoRemove some pointless TRACE level debug code
Diego Biurrun [Sun, 3 Jan 2016 19:27:59 +0000 (20:27 +0100)]
Remove some pointless TRACE level debug code

This also kills some warnings with certain compiler options.

4 years agonut: Drop pointless TRACE level debug code
Diego Biurrun [Fri, 11 Dec 2015 17:58:12 +0000 (18:58 +0100)]
nut: Drop pointless TRACE level debug code

The code has little usefulness and uses the __PRETTY_FUNCTION__ GNU extension.

4 years agonsv: Drop unnecessary TRACE level debug code
Diego Biurrun [Sun, 6 Dec 2015 14:13:44 +0000 (15:13 +0100)]
nsv: Drop unnecessary TRACE level debug code

The output is rather silly and the code uses non-standard __FUNCTION__.

4 years agodnxhdenc: Drop pointless, commented-out debug output
Diego Biurrun [Mon, 11 Jan 2016 14:40:20 +0000 (15:40 +0100)]
dnxhdenc: Drop pointless, commented-out debug output

4 years agoaudio_fifo: Drop write-only variable
Diego Biurrun [Thu, 12 Mar 2015 23:38:07 +0000 (00:38 +0100)]
audio_fifo: Drop write-only variable

4 years agoh264_loopfilter: Do not print value of uninitialized variable
Diego Biurrun [Sun, 3 Jan 2016 19:46:51 +0000 (20:46 +0100)]
h264_loopfilter: Do not print value of uninitialized variable

libavcodec/h264_loopfilter.c:531:111: warning: variable 'edge' is uninitialized when used here [-Wuninitialized]

4 years agompegaudio: Do not print value of uninitialized variable
Diego Biurrun [Sun, 3 Jan 2016 19:45:48 +0000 (20:45 +0100)]
mpegaudio: Do not print value of uninitialized variable

libavcodec/mpegaudiodec_template.c:885:97: warning: variable 'x' is uninitialized when used here [-Wuninitialized]

4 years agobuild: Hardcode avversion.h dependency
Diego Biurrun [Sun, 16 Oct 2016 06:49:40 +0000 (08:49 +0200)]
build: Hardcode avversion.h dependency

Since avversion.h is a generated header it must be created before
dependencies can be determined as a side effect of compilation.
Otherwise Make stops and restarts the build process to generate
avversion.h and produces related error messages.

4 years agoopenssl: Avoid double semicolons after the GET_BIO_DATA macro
Martin Storsjö [Tue, 25 Oct 2016 18:33:34 +0000 (21:33 +0300)]
openssl: Avoid double semicolons after the GET_BIO_DATA macro

When the macro is expanded with a semicolon following it and the
macro itself contains a semicolon, we ended up in double semicolons,
which is treated as a statement that disallows further declarations.

This avoids errors about mixed declarations and statements on gcc,
after ee050797664c.

Signed-off-by: Martin Storsjö <>
4 years agoaviocat: Support avio options
Luca Barbato [Tue, 18 Oct 2016 12:50:45 +0000 (14:50 +0200)]
aviocat: Support avio options

Useful to test protocols that require options to be used.

4 years agoscale_npp: fix passthrough mode
Yogender Gupta [Mon, 24 Oct 2016 12:56:41 +0000 (18:26 +0530)]
scale_npp: fix passthrough mode

Signed-off-by: Anton Khirnov <>
4 years agovaapi_decode: Remove vestigial unmap code
Mark Thompson [Wed, 19 Oct 2016 22:47:55 +0000 (23:47 +0100)]
vaapi_decode: Remove vestigial unmap code

The buffer map/unmap code was in an early version of this before it
was committed, but the unmap was never removed.  While wrong, this
was harmless (and therefore unnoticed) because the buffers can't be
mapped at this point - all drivers just did nothing with the call.

4 years agovaapi_decode: Clear parameter buffers to fix picture reuse
Mark Thompson [Wed, 19 Oct 2016 22:45:46 +0000 (23:45 +0100)]
vaapi_decode: Clear parameter buffers to fix picture reuse

When decoding interlaced pictures, the structure is reused to render
to the same surface twice.  The parameter buffers were not being
cleared, which caused the i965 driver to error out.

4 years agovaapi_h264: fix RefPicList[] field flags.
Gwenole Beauchesne [Wed, 19 Oct 2016 22:42:53 +0000 (23:42 +0100)]
vaapi_h264: fix RefPicList[] field flags.

Use new H264Ref.reference field to track field picture flags. The
H264Picture.reference flag in DPB is now irrelevant here.

This is a regression from git commit a12d3188, and that affected
multiple interlaced video streams.

Signed-off-by: Gwenole Beauchesne <>
Signed-off-by: Mark Thompson <>
4 years agoopenssl: Support version 1.1.0.
Matt Oliver [Sun, 9 Oct 2016 19:49:54 +0000 (06:49 +1100)]
openssl: Support version 1.1.0.

Further simplifications by Martin Storsjö, to minimize the

Signed-off-by: Martin Storsjö <>
4 years agortmpdh: Don't use the OpenSSL DH struct
Martin Storsjö [Fri, 21 Oct 2016 09:40:05 +0000 (12:40 +0300)]
rtmpdh: Don't use the OpenSSL DH struct

Instead use our own struct, which we already use when using
gcrypt and gnutls.

In OpenSSL 1.1, the DH struct has been made opaque.

Signed-off-by: Martin Storsjö <>
4 years agobktr: Use memset(0) instead of zero initialization for struct sigaction
Diego Biurrun [Fri, 21 Oct 2016 12:17:07 +0000 (14:17 +0200)]
bktr: Use memset(0) instead of zero initialization for struct sigaction

sigaction is not defined in standards as a struct starting with another
struct. Some *BSD variants do however, resulting in a warning from the
zero initialization, which this change eliminates.

This partially reverts a92be9b856bd11b081041c43c25d442028fe9a63.

4 years agocheckasm: Add a test for HEVC add_residual
Alexandra Hájková [Tue, 11 Oct 2016 08:44:19 +0000 (10:44 +0200)]
checkasm: Add a test for HEVC add_residual

4 years agohevc: x86: Add add_residual() SIMD optimizations
Pierre Edouard Lepere [Mon, 18 Aug 2014 08:01:09 +0000 (10:01 +0200)]
hevc: x86: Add add_residual() SIMD optimizations

Initially written by Pierre Edouard Lepere <>,
extended by James Almer <>.

Signed-off-by: Alexandra Hájková <>
4 years agoReplace leftover uses of -aframes|-dframes|-vframes with -frames:a|d|v
Diego Biurrun [Fri, 21 Oct 2016 11:48:20 +0000 (13:48 +0200)]
Replace leftover uses of -aframes|-dframes|-vframes with -frames:a|d|v

4 years agomov: Update colr values
Vittorio Giovara [Tue, 18 Oct 2016 22:21:31 +0000 (18:21 -0400)]
mov: Update colr values

For 'nclx', the latest edition of the standard switched from JPEG XR
to 23001-8, which matches the current order of our entries. Bounds
are preserved as a sanity check.

For 'nclc', qtff edition 2016-09-13 introduced a few new entries.

Signed-off-by: Vittorio Giovara <>
4 years agolavu: Add JEDEC P22 color primaries
Vittorio Giovara [Tue, 18 Oct 2016 22:16:29 +0000 (18:16 -0400)]
lavu: Add JEDEC P22 color primaries

4 years agoMakefile: fix checking whether reconfiguring is required
Anton Khirnov [Wed, 19 Oct 2016 05:28:06 +0000 (07:28 +0200)]
Makefile: fix checking whether reconfiguring is required

It didn't take into account the new pattern used for bitstream filters
and protocols.

4 years agohevc: factor out a repeated condition
Anton Khirnov [Tue, 18 Oct 2016 19:22:22 +0000 (21:22 +0200)]
hevc: factor out a repeated condition

4 years agohevc: move the SliceType enum to hevc.h
Anton Khirnov [Tue, 18 Oct 2016 19:14:18 +0000 (21:14 +0200)]
hevc: move the SliceType enum to hevc.h

Those values are decoder-independent and are also use by the VA-API

4 years agolavf: check that the codec is supported by extract_extradata
Anton Khirnov [Tue, 18 Oct 2016 18:50:03 +0000 (20:50 +0200)]
lavf: check that the codec is supported by extract_extradata

Avoids superfluous error message spam after

4 years agoaudiodsp: x86: Remove pointless header file
Diego Biurrun [Wed, 28 Sep 2016 17:14:28 +0000 (19:14 +0200)]
audiodsp: x86: Remove pointless header file

Its single forward declaration can be moved to the only place
it is used, like is done for all other dsp init files.

4 years agoconfigure: Print warnings after all other output
Diego Biurrun [Sat, 15 Oct 2016 00:50:45 +0000 (02:50 +0200)]
configure: Print warnings after all other output

4 years agox86: videodsp: Add parentheses to expression to work around warning
Diego Biurrun [Thu, 17 Mar 2016 10:35:13 +0000 (11:35 +0100)]
x86: videodsp: Add parentheses to expression to work around warning

libavcodec/x86/videodsp.asm:128: warning: signed dword value exceeds bounds

4 years agofate: Update filter-pixfmts-scale gbrap12le hash missing from be9dba5c8a
Luca Barbato [Tue, 18 Oct 2016 13:00:38 +0000 (15:00 +0200)]
fate: Update filter-pixfmts-scale gbrap12le hash missing from be9dba5c8a

Signed-off-by: Diego Biurrun <>
4 years agocheckasm: aarch64: Don't clobber x29 in checkasm_stack_clobber
Martin Storsjö [Tue, 18 Oct 2016 10:48:56 +0000 (13:48 +0300)]
checkasm: aarch64: Don't clobber x29 in checkasm_stack_clobber

x29 (FP) is a callee saved register and should be restored on
return. Instead of backing up x29 and restoring it here, back up
sp in a register that we are allowed to overwrite.

This fixes crashes in checkasm on aarch64 since f1b3e1313851.
For some reason, gcc builds didn't crash, but clang builds do.

Signed-off-by: Martin Storsjö <>
4 years agoemms: Give apriv_emms_yasm() a more general name
Diego Biurrun [Sat, 8 Oct 2016 15:58:02 +0000 (17:58 +0200)]
emms: Give apriv_emms_yasm() a more general name

4 years agoswscale: Properly load alpha for planar rgb
Michael Niedermayer [Fri, 14 Oct 2016 21:25:55 +0000 (17:25 -0400)]
swscale: Properly load alpha for planar rgb

Signed-off-by: Vittorio Giovara <>
Signed-off-by: Luca Barbato <>
4 years agobuild: Add VSX-OBJS to SUBDIR_VARS
Diego Biurrun [Sat, 8 Oct 2016 15:43:37 +0000 (17:43 +0200)]

The variable needs to be reset for each subdirectory.

4 years agoppc: avcodec: Drop silly "_ppc" suffixes from files in ppc subdirectories
Diego Biurrun [Sun, 12 Aug 2012 15:54:30 +0000 (17:54 +0200)]
ppc: avcodec: Drop silly "_ppc" suffixes from files in ppc subdirectories

4 years agovaapi_encode: Write sequence header as extradata
Mark Thompson [Sun, 2 Oct 2016 07:48:34 +0000 (08:48 +0100)]
vaapi_encode: Write sequence header as extradata

Only works if packed headers are supported, where we can know the
output before generating the first frame.

4 years agovaapi_h265: Include header for slice types
Mark Thompson [Sun, 16 Oct 2016 22:55:24 +0000 (23:55 +0100)]
vaapi_h265: Include header for slice types

The include was changed correctly in 4abe3b049d987420eb891f74a35af2cebbf52144
but then mistakenly changed back by c359d624d3efc3fd1d83210d78c4152bd329b765
(it's not just the NAL unit types which are used).

4 years agox86: Add missing colons after assembly labels
Diego Biurrun [Thu, 17 Mar 2016 09:16:13 +0000 (10:16 +0100)]
x86: Add missing colons after assembly labels

This fixes many warnings of the sort
warning: label alone on a line without a colon might be in error

4 years agobuild: Drop arch-specific checkasm Makefiles
Diego Biurrun [Thu, 13 Oct 2016 23:24:36 +0000 (01:24 +0200)]
build: Drop arch-specific checkasm Makefiles

They only contain one line and will never contain more.

4 years agobuild: Drop duplicate asm recipe
Diego Biurrun [Sat, 8 Oct 2016 14:48:29 +0000 (16:48 +0200)]
build: Drop duplicate asm recipe

And move the asm recipe to the top-level Makefile next to the other
local pattern rules for .o files.

4 years agocheckasm: aarch64: Add filler args to make sure all parameters are passed on the...
Martin Storsjö [Fri, 30 Sep 2016 09:06:49 +0000 (12:06 +0300)]
checkasm: aarch64: Add filler args to make sure all parameters are passed on the stack

This, combined with clobbering the stack space prior to the call,
increases the chances of finding cases where 32 bit parameters
are erroneously treated as 64 bit.

Signed-off-by: Martin Storsjö <>
4 years agocheckasm: aarch64: Clobber the stack before calling functions
Martin Storsjö [Fri, 30 Sep 2016 08:39:22 +0000 (11:39 +0300)]
checkasm: aarch64: Clobber the stack before calling functions

Signed-off-by: Martin Storsjö <>
4 years agocheckasm: arm/aarch64: Fix the amount of space reserved for stack parameters
Martin Storsjö [Fri, 30 Sep 2016 08:49:47 +0000 (11:49 +0300)]
checkasm: arm/aarch64: Fix the amount of space reserved for stack parameters

Even if MAX_ARGS - 2 (for arm) or MAX_ARGS - 7 (for aarch64) parameters
are passed on the stack to checkasm_checked_call, we actually only
need to store MAX_ARGS - 4 (for arm) or MAX_ARGS - 8 (for aarch64)
parameters on the stack when calling the tested function.

Signed-off-by: Martin Storsjö <>
4 years agolavf: use the new bitstream filter for extracting extradata
Anton Khirnov [Thu, 22 Sep 2016 13:24:34 +0000 (15:24 +0200)]
lavf: use the new bitstream filter for extracting extradata

This also fixes a minor bug introduced in the codecpar conversion, where
the termination condition for extracting the extradata does not match
the actual extradata setting code. As a result, the packet durations
made up by lavf go back to their values before the codecpar conversion.
That is of little consequence since that code should eventually be
dropped completely.

4 years agolavc: add a bitstream filter for extracting extradata from packets
Anton Khirnov [Sun, 21 Aug 2016 15:08:34 +0000 (17:08 +0200)]
lavc: add a bitstream filter for extracting extradata from packets

This is intended as a replacement for the 'split' function exported by
some parsers.

4 years agohevcdec: move parameter set parsing into a separate header
Anton Khirnov [Sun, 21 Aug 2016 16:02:02 +0000 (18:02 +0200)]
hevcdec: move parameter set parsing into a separate header

This code is independent from the decoder, so it makes more sense for it
to to have its own header.

4 years agohevcdec: split ff_hevc_diag_scan* declarations into a separate header
Anton Khirnov [Wed, 12 Oct 2016 08:21:35 +0000 (10:21 +0200)]
hevcdec: split ff_hevc_diag_scan* declarations into a separate header

This will be useful in the following commits.

4 years agohevcdec: drop the prototype of a non-existing function
Anton Khirnov [Sun, 21 Aug 2016 15:48:01 +0000 (17:48 +0200)]
hevcdec: drop the prototype of a non-existing function

4 years agohevcdec: move decoder-independent declarations into a separate header
Anton Khirnov [Sun, 21 Aug 2016 15:35:28 +0000 (17:35 +0200)]
hevcdec: move decoder-independent declarations into a separate header

This way they can be reused by other code without including the whole
decoder-specific hevcdec.h
Also, add the HEVC_ prefix to them, since similarly named values exist
for H.264 as well and are sometimes used in the same code.

4 years agohevc: rename hevc.[ch] to hevcdec.[ch]
Anton Khirnov [Sun, 21 Aug 2016 15:14:24 +0000 (17:14 +0200)]
hevc: rename hevc.[ch] to hevcdec.[ch]

This is more consistent with the rest of libav and frees up the hevc.h
name for decoder-independent shared declarations.

4 years agoavformat/matroska: fix MatroskaVideoFieldOrder enum values
James Almer [Thu, 13 Oct 2016 13:53:41 +0000 (10:53 -0300)]
avformat/matroska: fix MatroskaVideoFieldOrder enum values

The spec says

9: Interlaced with bottom field displayed first and top field stored first
14: Interlaced with top field displayed first and bottom field stored first

And avcodec.h states

AV_FIELD_TB,          //< Top coded first, bottom displayed first
AV_FIELD_BT,          //< Bottom coded first, top displayed first

Signed-off-by: James Almer <>
Signed-off-by: Anton Khirnov <>
4 years agofile protocol: handle the file: protocol string in file_check
Anton Khirnov [Thu, 13 Oct 2016 08:03:18 +0000 (10:03 +0200)]
file protocol: handle the file: protocol string in file_check

This is consistent with what file_open() does.

4 years agortmpproto: Don't include a client version in the unencrypted C1 handshake
Martin Storsjö [Fri, 14 Oct 2016 12:55:52 +0000 (15:55 +0300)]
rtmpproto: Don't include a client version in the unencrypted C1 handshake

According to the public RTMP specification, these 4 bytes should
be zero.

librtmp in server mode assumes that the RTMPE (FP9) handshake is
used if these bytes are nonzero.

Signed-off-by: Martin Storsjö <>
4 years agortmpproto: Don't include the libavformat version as "clientid"
Martin Storsjö [Fri, 14 Oct 2016 08:30:12 +0000 (11:30 +0300)]
rtmpproto: Don't include the libavformat version as "clientid"

When acting as server, the server can include a "clientid" property
in some status messages. But this should be a unique number
identifying the client session, not identifying the server itself.
In practice, omitting it works just as well as including this
incorrect field.

Signed-off-by: Martin Storsjö <>
4 years agortmpproto: Send chunk size on the network channel
Martin Storsjö [Thu, 13 Oct 2016 13:17:11 +0000 (16:17 +0300)]
rtmpproto: Send chunk size on the network channel

This makes sure that e.g. Adobe FME actually reacts to it. As long
as the value we've been sending is the default one (128), the bug
hasn't been noticed.

Signed-off-by: Martin Storsjö <>
4 years agortmpproto: Lengthen the filename buffer when receiving streams
Martin Storsjö [Thu, 13 Oct 2016 12:25:33 +0000 (15:25 +0300)]
rtmpproto: Lengthen the filename buffer when receiving streams

Some applications such as Adobe FME append lots of parameters
here, making it easily overflow the current limit.

Signed-off-by: Martin Storsjö <>
4 years agortmpproto: Check the return from ff_amf_read_string
Martin Storsjö [Thu, 13 Oct 2016 12:24:54 +0000 (15:24 +0300)]
rtmpproto: Check the return from ff_amf_read_string

If this failed, we used to continue with an uninitialized
filename buffer.

Signed-off-by: Martin Storsjö <>
4 years agoMake the RELEASE file match with the most recent tag
Sean McGovern [Fri, 14 Oct 2016 17:52:51 +0000 (13:52 -0400)]
Make the RELEASE file match with the most recent tag

4 years agoswscale: Add the GBRAP12 output
Luca Barbato [Wed, 12 Oct 2016 19:30:34 +0000 (21:30 +0200)]
swscale: Add the GBRAP12 output

4 years agoAdd GBRAP12 pixel format support
Kieran Kunhya [Mon, 8 Feb 2016 21:40:10 +0000 (21:40 +0000)]
Add GBRAP12 pixel format support

Signed-off-by: Diego Biurrun <>
4 years agoswscale: Enable GBRP12 output
Luca Barbato [Mon, 10 Oct 2016 20:31:24 +0000 (22:31 +0200)]
swscale: Enable GBRP12 output

4 years agoswscale: x86: Add some forgotten 12-bit planar YUV cases
Michael Niedermayer [Thu, 5 Jul 2012 02:37:12 +0000 (04:37 +0200)]
swscale: x86: Add some forgotten 12-bit planar YUV cases

Signed-off-by: Diego Biurrun <>
4 years agoswscale: Add input support for 12-bit formats
Michael Niedermayer [Tue, 3 Jul 2012 02:10:11 +0000 (04:10 +0200)]
swscale: Add input support for 12-bit formats

Implemented for AV_PIX_FMT_GBRP12.

Signed-off-by: Vittorio Giovara <>
4 years agoAdd GBRP12 pixel format support
Michael Niedermayer [Wed, 4 Jul 2012 19:11:39 +0000 (21:11 +0200)]
Add GBRP12 pixel format support

Signed-off-by: Vittorio Giovara <>
4 years agoAPIchanges: Expand the name of recently added pixel formats
Vittorio Giovara [Thu, 6 Oct 2016 22:27:24 +0000 (18:27 -0400)]
APIchanges: Expand the name of recently added pixel formats

This makes them easier to search for.

4 years agolavc: bsf: Document input/output codecparam alloc/init process
Vittorio Giovara [Tue, 4 Oct 2016 15:59:53 +0000 (11:59 -0400)]
lavc: bsf: Document input/output codecparam alloc/init process

4 years agoswscale: Add missing yuv444p12 swapping
Vittorio Giovara [Thu, 6 Oct 2016 22:28:50 +0000 (18:28 -0400)]
swscale: Add missing yuv444p12 swapping

Missing from 9bd6ea5695660529b2887292874a7b9e61fc301e.

Signed-off-by: Vittorio Giovara <>
Signed-off-by: Luca Barbato <>