- 02 Aug, 2016 2 commits
-
-
Martin Storsjö authored
AV_WN64 is meant for unaligned data, but the existing av_alias* unions (without a definition for the av_alias attribute - we don't have one for MSVC) indicate to the compiler that they would have sufficient alignment for normal access, i.e. the compiler is free to assume 8 byte alignment. On ARM, this makes sure that AV_WN64 (or two consecutive AV_WN32) is done with two str instructions instead of one strd. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This avoids issues with expanding the argument multiple times, and makes sure that it is of the right type for the following shifts. Even if the caller of a macro could be expected not to pass parameters that have side effects if expanded multiple times, these fallback codepaths are rarely, if ever, tested, so it is expected that such issues can arise. Thefore, for safety, make sure the fallback codepaths only expand the arguments once. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 31 Jul, 2016 6 commits
-
-
Martin Storsjö authored
If AV_RN and AV_WN are macros with multiple individual reads and writes, the previous version of the AV_COPYU macro would fail if the reads and writes overlap. This should not be any less efficient in any case, given a sensibly optimizing compiler. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
AV_WB32 can be implemented as a macro that expands its parameters multiple times (in case AV_HAVE_FAST_UNALIGNED isn't set and the compiler doesn't support GCC attributes); make sure not to read multiple times from the source in this case. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
Signed-off-by: Martin Storsjö <martin@martin.st>
-
Anton Khirnov authored
We do not strictly specify that hwaccel_context must be cleared if no hwaccel is used. Reported-By: wm4 <nfxjfg@googlemail.com>
-
Anton Khirnov authored
Extend the probe function to validate the STREAMINFO block that must follow the fLaC ID tag.
-
Anton Khirnov authored
-
- 29 Jul, 2016 8 commits
-
-
Diego Biurrun authored
-
Diego Biurrun authored
The XCB screen grabber is a drop-in replacement and not under GPL.
-
Luca Barbato authored
Signed-off-by: Diego Biurrun <diego@biurrun.de>
-
Luca Barbato authored
skip_bits_long() can skip up to 32-bit ranges. Signed-off-by: Diego Biurrun <diego@biurrun.de>
-
Luca Barbato authored
Signed-off-by: Diego Biurrun <diego@biurrun.de>
-
Luca Barbato authored
Signed-off-by: Diego Biurrun <diego@biurrun.de>
-
Luca Barbato authored
IDs in MOV start from 1. Signed-off-by: Diego Biurrun <diego@biurrun.de>
-
Anton Khirnov authored
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
-
- 27 Jul, 2016 2 commits
-
-
Diego Biurrun authored
-
Diego Biurrun authored
This avoids a segfault on nonexisting codec names.
-
- 26 Jul, 2016 3 commits
-
-
Martin Storsjö authored
Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This allows these flags to be automatically enabled for clang, when using MSVCRT headers. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
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>
-
- 25 Jul, 2016 1 commit
-
-
Diego Biurrun authored
-
- 23 Jul, 2016 2 commits
-
-
Luca Barbato authored
Avoid a warning for passing an unsigned value to abs(), some compilers might optimize away abs().
-
Luca Barbato authored
The range field has been introduced in version 1.6.0
-
- 22 Jul, 2016 14 commits
-
-
Anton Khirnov authored
-
Anton Khirnov authored
-
Anton Khirnov authored
It should only be done for DEVICE_BUSY/IN_EXECUTION
-
Anton Khirnov authored
Include the libmfx error code and its description
-
Anton Khirnov authored
Other parameters, like the display size, should still be taken from the codec context.
-
Anton Khirnov authored
-
Anton Khirnov authored
This will allow using this function for encoding as well, where the input format is already the semi-packed version.
-
Anton Khirnov authored
-
Anton Khirnov authored
Currently it's memset to 0, which is YUV420P. It should be initialized to none.
-
Anton Khirnov authored
Do not hardcode NV12. This allows 10bit decoding with -hwaccel qsv.
-
Anton Khirnov authored
This is required e.g. by HEVC.
-
Anton Khirnov authored
The setpts filter does not signal to the rest of the filtergraph that the stream is CFR. Just generate the timestamps manually instead.
-
Alexandra Hájková authored
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-
Hendrik Leppkes authored
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>
-
- 21 Jul, 2016 2 commits
-
-
Vittorio Giovara authored
This reverts commit 0e0538ae. 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>
-
Martin Storsjö authored
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>
-