Luca Barbato and James Almer
abb5efca26
configure: Fix sem_timedwait probe
...
(cherry-picked from libav commit 41262498ff )
Signed-off-by: James Almer <jamrial@gmail.com >
2017-10-12 20:28:10 -03:00
Luca Barbato and James Almer
1e27837265
rtsp: Move message parsing to a separate function
...
Make easier to handle the polling function before we implement
full threading support.
(cherry picked from libav commit ca960161f0 )
Signed-off-by: James Almer <jamrial@gmail.com >
2017-10-06 00:22:10 -03:00
Luca Barbato and James Almer
19bf50406e
configure: Move up the avbuild directory creation
...
The early check for inconsistent in-source vs out-of-source build
cannot generate a config.log otherwise.
(Cherry-picked from libav commit 0ee78020cd )
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
Signed-off-by: James Almer <jamrial@gmail.com >
2017-06-20 20:40:52 -03:00
Luca Barbato
8c616b3b89
avplay: Use the named syntax for buffersrc arguments
...
Avoid confusion.
2017-03-23 12:52:58 +01:00
Luca Barbato
a46a4f722d
dca: Refactor dca_filter_channels() a little
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2017-03-21 12:08:52 +01:00
Luca Barbato
e245d4f45c
dca: Validate the channel map
...
Having a mismatch between the number of channels in the stream and those
in the channel map will lead to a segfault or worse.
Bug-Id: 1016
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2017-03-21 12:08:49 +01:00
Luca Barbato
ca960161f0
rtsp: Move message parsing to a separate function
...
Make easier to handle the polling function before we implement
full threading support.
2017-03-21 04:23:41 +01:00
Luca Barbato
bd805964f4
configure: Do not treat JACK as a system library
...
JACK is not commonly installed and should not be picked up as a
dependency unless specifically requested.
2017-03-21 04:23:41 +01:00
Luca Barbato
0d8013b88b
configure: Replace -no_weak_symbols with -Werror=partial-availability
...
Jack uses weak symbols on purpose.
2017-03-15 20:24:52 +01:00
Luca Barbato and Martin Storsjö
81bffae368
configure: Check for -no_weak_imports in ldflags on macOS
...
Recent versions of macOS provide more POSIX API (in particular,
clock_gettime) than previous versions and recent Apple toolchains
provide all that API, even when targeting older releases without
said API. Disallow linking to functions which might not be available
at runtime.
To actually have an effect, either add
--extra-cflags="-mmacosx-version-min=10.11" (or any other version
prior to 10.12) or set MACOSX_DEPLOYMENT_TARGET=10.11 when running
configure.
As a workaround for libav versions without this fix, one can
also add --extra-cflags="-mmacosx-version-min=10.11
-Werror=partial-availability" while running configure.
The -no_weak_imports flag is new in Xcode 8; in Xcode 7 it is not
supported. This is not an issue since Xcode 7 only ships with the
10.11 macOS SDK, which lacks clock_gettime.
Bug-Id: 1033
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st >
2017-03-07 09:48:55 +02:00
Luca Barbato
79331df362
rtsp: Lazily set up the pollfd array once
2017-02-28 12:54:04 +01:00
Luca Barbato
5263f464db
rtsp: Lazily allocate the pollfd array
...
And use av_malloc_array.
2017-02-27 13:51:53 +01:00
Luca Barbato
b9b82151a1
rtsp: Move the pollfd setup out of the for loop
2017-02-27 13:51:53 +01:00
Luca Barbato
150e99d694
rtsp: Factor out packet reading
2017-02-27 13:51:53 +01:00
Luca Barbato
04d2afa93b
mkv: Update the seek test to match 5d3953a5dc
2017-02-22 10:15:00 +01:00
Luca Barbato
b446f0e98f
mov: Do not try to parse multiple stsd for the same track
...
Bug-Id: 1017
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2017-02-15 00:40:00 +01:00
Luca Barbato and Diego Biurrun
9c2d36fcaf
dv: Convert to the new bitstream reader
2017-02-11 20:29:44 +01:00
Luca Barbato
ba30b74686
aac: Validate the sbr sample rate before using the value
...
Avoid a floating point exception.
Bug-Id: 1027
CC: libav-stable@libav.org
2017-02-11 20:23:11 +01:00
Luca Barbato
0ee78020cd
configure: Move up the avbuild directory creation
...
The early check for inconsistent in-source vs out-of-source build
cannot generate a config.log otherwise.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2017-02-11 15:47:43 +01:00
Luca Barbato
b6093e8c72
hlsenc: Correctly write down all 16 bytes in hex
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2017-02-10 14:12:16 +01:00
Luca Barbato
11e225db31
rtmp: Account for bytes_read wraparound
...
Servers seem to be happy to receive the wrapped-around value as long
as they receive a report, otherwise they timeout.
Initially reported and analyzed by Thomas Bernhard.
2017-01-29 18:10:44 +01:00
Luca Barbato
562ef82d6a
fifo: Return the correct AVERROR value
2017-01-26 10:25:20 +01:00
Luca Barbato
fb59f87ce7
nvenc: Explicitly push the cuda context on encoding
...
Make sure that NVENC does not misbehave if other cuda usages happen
in the application.
2017-01-17 07:37:12 +01:00
Luca Barbato
44129e3804
avconv: Do not pass NULL to avio_tell
...
The null demuxer does not have a backing AVIOContext.
2017-01-13 08:42:11 +01:00
Luca Barbato
f8f7ad758d
qsv: Set the correct range for la_depth
...
Setting an invalid range for it makes the encoder behave inconsistently.
2017-01-13 08:42:10 +01:00
Luca Barbato and Vittorio Giovara
3f75e5116b
avio: Keep track of the amount of data written
...
Make avio_size() work with any write AVIOContext.
2016-12-08 15:58:28 -05:00
Luca Barbato and Vittorio Giovara
518a22471e
configure: Be more helpful when requiring options set
...
Be explicit about which options should be set.
2016-12-02 12:00:07 -05:00
Luca Barbato
d0c84c41d3
avconv: Fix the audio next dts computation
...
Use the correct timebase.
CC: libav-stable@libav.org
2016-11-29 10:38:01 +01:00
Luca Barbato
3c7fa8cbb9
hlsenc: Fix the openssl support
2016-11-18 11:18:58 +01:00
Luca Barbato
adb0e941c3
avpacket: Mark src pointer as constant
2016-11-17 19:41:12 +01:00
Luca Barbato
0a4b9d0ccd
hlsenc: Add encryption support
...
Partially based on Christian Suloway <csuloway@globaleagleent.com > work.
2016-11-17 19:19:55 +01:00
Luca Barbato and Michael Niedermayer
19be5fb728
swscale: Add GRAY12
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-10 00:49:29 +01:00
Luca Barbato and Michael Niedermayer
638b216d4f
pixfmt: Add GRAY12
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-10 00:42:48 +01:00
Luca Barbato and Michael Niedermayer
2c7d8cbd66
swscale: Add the GBRAP12 output
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-11-10 00:33:12 +01:00
Luca Barbato
ab839054e6
swscale: Add GRAY12
2016-11-07 22:42:00 +01:00
Luca Barbato
7471352f19
pixfmt: Add GRAY12
2016-11-07 22:42:00 +01:00
Luca Barbato
dad7514f9e
xcb: Add all the libraries to the link line explicitly
...
Avoid an underlink issue on recent distributions.
CC: libav-stable@libav.org
2016-10-30 21:55:03 +01:00
Luca Barbato
c541a44e02
Revert "rtmpproto: Don't include a client version in the unencrypted C1 handshake"
...
This reverts commit 7d8d726be7 .
2016-10-30 21:55:03 +01:00
Luca Barbato
801ac7156d
qsv: Be informative when reporting that no data has been consumed
2016-10-30 21:55:03 +01:00
Luca Barbato
052b97855d
aviocat: Support avio options
...
Useful to test protocols that require options to be used.
2016-10-25 15:43:56 +02:00
Luca Barbato and Diego Biurrun
da4f8c8e35
fate: Update filter-pixfmts-scale gbrap12le hash missing from be9dba5c8a
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2016-10-18 20:34:55 +02:00
Luca Barbato
881477c77b
swscale: Add the GBRAP12 output
2016-10-12 21:33:34 +02:00
Luca Barbato
ef3740c3a0
swscale: Enable GBRP12 output
2016-10-12 18:00:24 +02:00
Luca Barbato
b015872c0d
huffyuvdsp: Enable the altivec code for PPC little-endian as well
...
Confirmed to work by checkasm.
2016-10-02 17:13:36 +02:00
Luca Barbato
1d25a86902
huffyuvdsp: Reenable PPC optimizations
2016-10-02 17:13:36 +02:00
Luca Barbato
0e8d1fc1f0
lavu: Bump version for the 12bit Planar YUV support
2016-09-27 18:48:30 +02:00
Luca Barbato
2b5b1e1e9b
swscale: Rename is9_OR_10 to match what it does
...
It is used to select functions that work with 9-15bits.
2016-09-27 18:48:30 +02:00
Luca Barbato
9bd6ea5695
pixfmt: Add yuv444p12 pixel format
2016-09-27 18:48:30 +02:00
Luca Barbato
0aebbbd024
pixfmt: Add yuv422p12 pixel format
2016-09-27 18:48:30 +02:00
Luca Barbato
85406e7a8d
pixfmt: Add yuv420p12 pixel format
2016-09-27 18:48:30 +02:00
Luca Barbato
e87a501e7d
swscale: Update bitdepth range check
...
Make sure the scaling functions for the 9-15bits are used for
9-15bits bit depths correctly.
2016-09-27 17:17:54 +02:00
Luca Barbato
352741b5ea
nvenc: Make sure that enum and array index match
...
And use a macro to reduce the boilerplate.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
Signed-off-by: Diego Biurrun <diego@biurrun.de >
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2016-09-24 18:08:54 +02:00
Luca Barbato and Diego Biurrun
caccb3a0cd
audiodsp: ppc: Add VSX variant
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2016-09-11 19:19:41 +02:00
Luca Barbato
e89cef4050
checkasm: Read the unsigned value as it should
...
Reading a value larger than int using atoi() may give the wrong result.
2016-09-11 14:12:18 +02:00
Luca Barbato
963b3ab11f
doc: Document FATE option HWACCEL
2016-08-26 09:21:59 +02:00
Luca Barbato and Diego Biurrun
d42809f983
av1: Add codec_id and basic demuxing support
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2016-08-24 14:45:08 +02:00
Luca Barbato
24130234cd
rtpdec_mpeg4: validate fmtp fields
2016-08-23 18:58:10 +02:00
Luca Barbato
f6d2fed811
avconv: Make sure that inputless filtergraphs are configured
...
Unbreak `avconv -filter_complex testsrc`.
Regression introduced in a3a0230a98
2016-08-12 11:41:58 +02:00
Luca Barbato
602abe77b0
avconv: Check the fifo allocation
2016-08-12 11:41:58 +02:00
Luca Barbato and Diego Biurrun
8495d84f01
ac3dec: Add some inline hints
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2016-07-29 18:46:48 +02:00
Luca Barbato and Diego Biurrun
3db51bf671
ac3dec: Simplify skipping
...
skip_bits_long() can skip up to 32-bit ranges.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2016-07-29 18:46:48 +02:00
Luca Barbato and Diego Biurrun
f0ccc65bc9
ac3dec: Split coupling-specific code from decode_audio_block()
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2016-07-29 18:46:48 +02:00
Luca Barbato and Diego Biurrun
a5ebe5d121
ac3dec: Split spx-specific code from decode_audio_block()
...
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2016-07-29 18:46:48 +02:00
Luca Barbato and Diego Biurrun
2ac00d2d1d
mov: Validate the ID number
...
IDs in MOV start from 1.
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2016-07-29 18:46:48 +02:00
Luca Barbato and Timothy Gu
e85d38c20a
librtmp: Avoid an infiniloop setting connection arguments
...
The exit condition was missing.
Signed-off-by: Timothy Gu <timothygu99@gmail.com >
2016-07-26 12:05:29 -07:00
Luca Barbato
40ad05bab2
checkasm: Cast unsigned to signed
...
Avoid a warning for passing an unsigned value to abs(), some compilers
might optimize away abs().
2016-07-23 08:27:32 +02:00
Luca Barbato
b183abfb5b
vpx: Support color range
...
The range field has been introduced in version 1.6.0
2016-07-23 08:27:29 +02:00
Luca Barbato
3c08b7bc76
ffv1: Report additional bitstream information in verbose mode
...
Useful to inspect samples.
2016-06-29 07:21:07 +02:00
Luca Barbato
fe6e5cbea7
ffv1: Remove version 2 and mark version 3 as non-experimental
...
The encoder produces bitstream compatible with the current specification
and version 2 is set as reserved (non-standardizable).
2016-06-29 07:21:07 +02:00
Luca Barbato
4dbfcd0757
librtmp: Avoid an infiniloop setting connection arguments
...
The exit condition was missing.
CC: libav-stable@libav.org
2016-06-22 06:37:33 +02:00
Luca Barbato
5264e7ba21
ac3: Check the array bound before dereferencing
...
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2016-05-27 15:49:48 +02:00
Luca Barbato and Diego Biurrun
74b1bf632f
mp3: Make the extrasize explicit
...
Initialize the bit buffer with the correct size (amount of bits that will
be read) instead of relying on the bitstream reader overreading the
correct values.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2016-05-22 23:07:54 +02:00
Luca Barbato and Derek Buitenhuis
dd4fb2339f
ape: Unbreak adaptcoeffs computation
...
And simplify and explain the expression.
Fault introduced in f3fdef108e
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2016-05-12 14:32:16 +01:00
Luca Barbato
74d98d1b0e
mpegts: Validate the SL Packet Header Configuration
...
timeStampLength, OCRLength and AU_Length have well specified upper
boundaries.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2016-05-03 14:21:45 +09:00
Luca Barbato
4012fe1ee8
ape: Unbreak adaptcoeffs computation
...
And simplify and explain the expression.
Fault introduced in f3fdef108e
2016-04-24 10:18:25 +02:00
Luca Barbato
79fdbfdb3e
img2enc: Refactor the atomic renaming code
...
And use it for the separate-plane side-feature as well.
Bug-Id: 935
2016-04-19 20:30:48 +02:00
Luca Barbato
f3fdef108e
ape: Avoid undefined behaviour
...
Avoid the clang warning
"warning: shifting a negative signed value is undefined"
2016-04-19 20:22:31 +02:00
Luca Barbato
6b2ad3ca48
indeo3: Avoid undefined behaviour
...
Avoid the clang warning
"warning: shifting a negative signed value is undefined"
2016-04-19 19:00:41 +02:00
Luca Barbato
e3453fd444
matroska: Write the field order information
...
And bump the document version to 4.
2016-04-03 19:36:57 +02:00
Luca Barbato
1db8eb1549
avconv: Drop an unused variable
2016-04-01 05:30:22 +02:00
Luca Barbato
5f02266681
matroska: Support interlaced content correctly
...
The matroska specification now has two elements for it.
2016-03-31 18:03:21 +02:00
Luca Barbato
9765549f55
mpegts: Forward the errors on mpeg4 objects parsing
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2016-03-20 01:04:12 +01:00
Luca Barbato
1098f5c049
svq3: Use a separate buffer for decoding the slices
...
The AVPacket.data should be considered read-only.
2016-03-16 13:09:23 +01:00
Luca Barbato and Michael Niedermayer
73f3c8f73e
indeo2: Fix banding artefacts
...
Rename luma table to delta table and change how it is used.
CC: libav-stable@libav.org
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Diego Biurrun <diego@biurrun.de >
(cherry picked from commit f8c34f4b8d )
2016-03-16 11:32:51 +01:00
Luca Barbato and Michael Niedermayer
522ab0b9a9
indeo2data: K&R formatting cosmetics
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Diego Biurrun <diego@biurrun.de >
(cherry picked from commit d4066a7024 )
2016-03-16 11:32:49 +01:00
Luca Barbato
8b4b1c1eea
matroska: Support V_QUICKTIME as written in the specification
...
Check if the size is written the first 4 bytes and read the next 4
as fourcc candidate, fallback checking the initial for 4 bytes.
"The CodecPrivate contains all additional data that is stored in the
'stsd' (sample description) atom in the QuickTime file after the
mandatory video descriptor structure (starting with the size and FourCC
fields)"
CC: libav-stable@libav.org
2016-03-15 16:06:35 +01:00
Luca Barbato
92c1a83ee9
qsv: Fix loading multiple plugins
...
av_get_token does not strip the trailing separator.
2016-03-15 16:05:19 +01:00
Luca Barbato
7e01d48cfd
mov: Check the entries value when parsing dref boxes
...
And properly reset the entries count when resetting the entries.
CC: libav-stable@libav.org
Bug-Id: 929
Bug-Id: CVE-2016-3062
2016-03-11 14:29:13 +01:00
Luca Barbato
59b9d2f684
configure: Add support for clang llvm-cov
2016-03-07 16:59:00 +01:00
Luca Barbato
c11a858626
configure: Support msan as toolchain
2016-03-07 16:59:00 +01:00
Luca Barbato and Vittorio Giovara
39a2d3288e
mpegvideo: Refactor emulated_edge_mc calls
2016-03-05 08:26:36 -05:00
Luca Barbato and Vittorio Giovara
0242351390
mpegvideo: Fix undefined negative shifts in mpeg_motion_internal
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2016-03-05 08:26:36 -05:00
Luca Barbato and Vittorio Giovara
7d4a1ff344
mpegvideo: Fix undefined negative shifts in ff_init_block_index
...
Found-by: gcc5-ubsan.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
2016-03-05 08:26:36 -05:00
Luca Barbato and Diego Biurrun
f8c34f4b8d
indeo2: Fix banding artefacts
...
Rename luma table to delta table and change how it is used.
CC: libav-stable@libav.org
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2016-03-01 13:50:24 +01:00
Luca Barbato and Diego Biurrun
d4066a7024
indeo2data: K&R formatting cosmetics
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com >
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2016-03-01 13:46:00 +01:00
Luca Barbato
ce9d7da765
qsv: Move down the implementation query
...
The plugin loaded may not match the general implementation capability
wise.
2016-02-26 10:28:42 +01:00
Luca Barbato
bf7be043fc
matroska: Always consider S_TEXT/UTF8 as SRT when demuxing
...
Reported-By: Maxim Koitsov <maksbotan@gentoo.org >
2016-02-22 09:40:16 +01:00
Luca Barbato
f273f7fb25
mkv: Force the full parsing of mp3
...
Some muxer might or might not fit incomplete mp3 frames in
their packets.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2016-02-19 17:35:33 +01:00
Luca Barbato
3ef98937f5
mov: Force the full parsing of mp3
...
Some muxer might or might not fit incomplete mp3 frames in
their packets.
Bug-Id: 899
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2016-02-19 17:35:26 +01:00
Luca Barbato
2edc718723
configure: Relax the implication of --enable for components
...
Do not error out if some subcomponents cannot be enabled.
Reported-By: RT|AO
2016-02-15 17:57:43 +01:00