Anton Khirnov
5ebef79abe
Fix instances of broken indentation found by gcc 6
8 years ago
Diego Biurrun
5ed4644d6d
x11grab: Rename internal component to "xcbgrab"
8 years ago
Diego Biurrun
4fef648d10
Remove the legacy X11 screen grabber
...
The XCB screen grabber is a drop-in replacement and not under GPL.
8 years ago
Luca Barbato
8495d84f01
ac3dec: Add some inline hints
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years ago
Luca Barbato
3db51bf671
ac3dec: Simplify skipping
...
skip_bits_long() can skip up to 32-bit ranges.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years ago
Luca Barbato
f0ccc65bc9
ac3dec: Split coupling-specific code from decode_audio_block()
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years ago
Luca Barbato
a5ebe5d121
ac3dec: Split spx-specific code from decode_audio_block()
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years ago
Luca Barbato
2ac00d2d1d
mov: Validate the ID number
...
IDs in MOV start from 1.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years ago
Anton Khirnov
a115eb9e75
mimic: do not release the newly obsolete reference at the end of decoding
...
The reference frames are used in update_thread_context(), so modifying
them after finish_setup() is a race. The frame in question will be
released during the next decode call.
CC: libav-stable@libav.org
8 years ago
Diego Biurrun
ae90119c67
configure: Simplify license incompatibility check
8 years ago
Diego Biurrun
e46a6fb773
avconv: Check that muxing_queue exists before reading from it
...
This avoids a segfault on nonexisting codec names.
8 years ago
Martin Storsjö
100fb0ddfd
configure: Allow detecting and using LLVM lld-link as linker for windows
...
Signed-off-by: Martin Storsjö <martin@martin.st>
8 years ago
Martin Storsjö
79fb069299
configure: Move defines for controlling MSVCRT headers to the CRT detection section
...
This allows these flags to be automatically enabled for clang,
when using MSVCRT headers.
Signed-off-by: Martin Storsjö <martin@martin.st>
8 years ago
Martin Storsjö
56af0bc10f
configure: Check for strtoll and redirect to _strtoi64 in the msvcrt block
...
This allows doing this redirection, if building with clang against
old enough MSVC headers that lack strtoll (2012 and older).
Signed-off-by: Martin Storsjö <martin@martin.st>
8 years ago
Diego Biurrun
48b80f8393
hpeldsp: Explain why put_no_rnd_pixels_tab is larger than necessary
8 years ago
Luca Barbato
40ad05bab2
checkasm: Cast unsigned to signed
...
Avoid a warning for passing an unsigned value to abs(), some compilers
might optimize away abs().
8 years ago
Luca Barbato
b183abfb5b
vpx: Support color range
...
The range field has been introduced in version 1.6.0
8 years ago
Anton Khirnov
ad71d3276f
lavfi: add a QSV deinterlacing filter
8 years ago
Anton Khirnov
8e07c22e50
qsvenc: print warnings from encode/init
8 years ago
Anton Khirnov
0956fd4606
qsvenc: do not re-execute encoding on all positive status codes
...
It should only be done for DEVICE_BUSY/IN_EXECUTION
8 years ago
Anton Khirnov
95414eb2dc
qsv: print more complete error messages
...
Include the libmfx error code and its description
8 years ago
Anton Khirnov
d9ec3c6014
qsvenc: take only the allocated dimensions from the frames context
...
Other parameters, like the display size, should still be taken from the
codec context.
8 years ago
Anton Khirnov
37a9015ee8
qsvenc: add support for p010
8 years ago
Anton Khirnov
21962261c7
qsv: handle the semi-packed formats in map_fourcc as well
...
This will allow using this function for encoding as well, where the
input format is already the semi-packed version.
8 years ago
Anton Khirnov
f65285aba0
lavc: set sw_pix_fmt for hwaccel encoding
8 years ago
Anton Khirnov
d59641abfd
lavc: initialize AVCodecContext.sw_pix_fmt properly
...
Currently it's memset to 0, which is YUV420P. It should be initialized
to none.
8 years ago
Anton Khirnov
8b7a9729aa
avconv_qsv: use the actual pixel format provided by lavc
...
Do not hardcode NV12. This allows 10bit decoding with -hwaccel qsv.
8 years ago
Anton Khirnov
6f40181cad
avconv_qsv: align the surface size to 32
...
This is required e.g. by HEVC.
8 years ago
Anton Khirnov
b0f36a0043
avconv: stop using setpts for input framerate forced with -r
...
The setpts filter does not signal to the rest of the filtergraph that
the stream is CFR. Just generate the timestamps manually instead.
8 years ago
Alexandra Hájková
9064777dbb
checkasm: add HEVC test for testing IDCT DC
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years ago
Hendrik Leppkes
7f549b8338
riff: don't overwrite bps from WAVEFORMATEX if EXTENSIBLE doesn't contain that data.
...
According to the specification on the MSDN [1], 0 is valid for that
particular field, and it should be ignored in that case.
[1]: http://msdn.microsoft.com/en-us/library/windows/desktop/dd757714(v=vs.85).aspx
Bug-Id: 950
Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years ago
Vittorio Giovara
6135c3b61e
Revert "avprobe: Zero the allocated avio buffer memory"
...
This reverts commit 0e0538aefc
.
The valgrind warning was a false positive due to OSX implementation of
printf (invoking a strnlen), while this code is actually fine, since the
format specifier %.*s guarantes that no more than buf_size bytes from
buf will be read.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Martin Storsjö
f637046d31
libavutil: Always use some GCC style attributes on clang
...
Clang normally disguises as GCC (defining __GNUC__), and thus get
all the normal GCC specific attributes.
Clang can also work as a drop-in replacement for MSVC, and in these
cases, it doesn't define __GNUC__, but defines _MSC_VER instead.
Even in these setups, it still supports the GCC style attributes,
thus use them, especially where there isn't any MSVC specific
version, or where the MSVC specific version doesn't work on clang
(for DECLARE_ASM_CONST).
Signed-off-by: Martin Storsjö <martin@martin.st>
8 years ago
Martin Storsjö
6f9e34baea
arm: Check for support for the .fpu directive
...
When targeting COFF (windows), clang doesn't support this
directive (while binutils supports it for all targets).
Signed-off-by: Martin Storsjö <martin@martin.st>
8 years ago
Vittorio Giovara
ed9b2a5178
mov: Rework the check for invalid indexes in stsc
...
There are samples with invalid stsc that may work fine as is and
do not need extradata change. So ignore any out of range index, and
error out only when explode is set.
Found-by: Matthieu Bouron <matthieu.bouron@stupeflix.com>
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Vittorio Giovara
90bc423212
mov: Wrap stsc index and count compare in a separate function
8 years ago
Matthieu Bouron
209ee680ce
mov: Fix stsc_count comparison
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Vittorio Giovara
a1f6a2dfda
ratecontrol: Reorder functions to avoid forward declarations
8 years ago
Vittorio Giovara
d639dcdae0
ratecontrol: Move Xvid-related functions to the place they are actually used
...
This will simplify the de-MpegEncContextualization.
8 years ago
Vittorio Giovara
44972e227d
ratecontrol: Move mpegenc-only function where it is used
8 years ago
Vittorio Giovara
b4bb959383
ratecontrol: Drop commented out cruft
8 years ago
Diego Biurrun
d06dfaa5cb
x86: huffyuv: Use EXTERNAL_SSSE3_FAST convenience macro where appropriate
8 years ago
Fiona Glaser
8e9cd81d29
x86: cpu: Detect Conroe CPUs and their slow shuffle unit
8 years ago
Diego Biurrun
7d7355aa92
x86: Add SSSE3_SLOW CPU flag and related convenience macros
8 years ago
Diego Biurrun
4efab89332
x86: Use *_FAST/*_SLOW CPU feature detection macros where appropriate
8 years ago
Diego Biurrun
0a39c9ac0b
x86: hpeldsp: Don't check for bitexact flag when initializing VP3-specific code
...
That code is only ever initialized with that flag set.
8 years ago
Diego Biurrun
95c1df929b
x86: hpeldsp: Drop unused function parameters
8 years ago
Diego Biurrun
c3e83ad3b7
x86: hpeldsp: Use EXTERNAL_SSE2_FAST where appropriate
8 years ago
Diego Biurrun
1dfc3cf89d
x86: hpeldsp: Split off VP3-specific bits into a separate file
8 years ago
Vittorio Giovara
9833a406d3
examples: Properly free AVCodecContext
8 years ago