- 27 Nov, 2014 3 commits
-
-
wm4 authored
The buffer pool has to atomically add and remove entries from the linked list of available buffers. This was done by removing the entire list with a CAS operation, working on it, and then setting it back again (using a retry-loop in case another thread was doing the same thing). This could effectively cause memory leaks: while a thread was working on the buffer list, other threads would allocate new buffers, increasing the pool's total size. There was no real leak, but since these extra buffers were not needed, but not free'd either (except when the buffer pool was destroyed), this had the same effects as a real leak. For some reason, growth was exponential, and could easily kill the process due to OOM in real-world uses. Fix this by using a mutex to protect the list operations. The fancy way atomics remove the whole list to work on it is not needed anymore, which also avoids the situation which was causing the leak. Signed-off-by:
Anton Khirnov <anton@khirnov.net>
-
Anton Khirnov authored
Also add no-op fallbacks when threading is disabled. This helps keeping the code clean if Libav is compiled for targets without threading. Since we assume that no threads of any kind are used in such configurations, doing nothing is ok by definition. Based on a patch by wm4 <nfxjfg@googlemail.com>.
-
Martin Storsjö authored
This doesn't add any dependency on library internals, since this only is a static inline function that gets built into each of the calling functions - this is only to reduce the code duplication. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 24 Nov, 2014 1 commit
-
-
Vittorio Giovara authored
-
- 11 Nov, 2014 1 commit
-
-
Luca Barbato authored
It is av_opt_set now.
-
- 07 Nov, 2014 1 commit
-
-
Henrik Gramner authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 25 Oct, 2014 2 commits
-
-
Martin Storsjö authored
gmtime isn't thread safe in general. In msvcrt (which lacks gmtime_r), the buffer used by gmtime is thread specific though. One call to localtime is left in avconv_opt.c, where thread safety shouldn't matter (instead of making avconv depend on the libavutil internal header). Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This allows writing most code as if they always are is available. These are ok to use from other libraries even though it's not a public header, since they only provide an inline declaration, and doesn't add an actual dependency on lavu internals. (This can be considered more a build system compatibility fallback than a libavutil feature.) Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 24 Oct, 2014 1 commit
-
-
Martin Storsjö authored
Since av_gettime() is used in a number of places where actual real time clock is required, the monotonic clock introduced in ebef9f5a would have consequences that are hard to handle. Instead split it into a separate function that can be used in the cases where only relative time is desired. On platform where no monotonic clock is available, the difference between the two av_gettime functions is not clear, and one could mistakenly use the relative clock where an absolute one is required. Therefore add an offset, to make it evident that the time returned from av_gettime_relative never is actual current real time, even though it is based on av_gettime. Based on a patch by Olivier Langlois. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 08 Oct, 2014 3 commits
-
-
Vittorio Giovara authored
-
Vittorio Giovara authored
-
Vittorio Giovara authored
-
- 26 Sep, 2014 1 commit
-
-
Luca Barbato authored
-
- 09 Sep, 2014 3 commits
-
-
Henrik Gramner authored
Previously there was a limit of two cpuflags. Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
Loren Merritt authored
Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
Henrik Gramner authored
This makes more sense for future implementations of templates with zmm registers. Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
- 08 Sep, 2014 1 commit
-
-
Gabriel Dume authored
Leftover of 56d7df91e010a177a80cfc8dbe394305 Signed-off-by:
Luca Barbato <lu_zero@gentoo.org>
-
- 03 Sep, 2014 2 commits
-
-
Luca Barbato authored
Signed-off-by:
Luca Barbato <lu_zero@gentoo.org>
-
Luca Barbato authored
-
- 15 Aug, 2014 3 commits
-
-
Gabriel Dume authored
Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
Gabriel Dume authored
Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
Diego Biurrun authored
The file does not require atomic.h. Also kills function redefinition warnings.
-
- 14 Aug, 2014 1 commit
-
-
Diego Biurrun authored
-
- 13 Aug, 2014 4 commits
-
-
Diego Biurrun authored
-
Anton Khirnov authored
-
Felix Abecassis authored
Signed-off-by:
Anton Khirnov <anton@khirnov.net>
-
Andrew Stone authored
In order to support metadata being set as an option, it's necessary to be able to set dictionaries as values. Signed-off-by:
Anton Khirnov <anton@khirnov.net>
-
- 10 Aug, 2014 1 commit
-
-
Luca Barbato authored
-
- 09 Aug, 2014 3 commits
-
-
Anton Khirnov authored
-
Anton Khirnov authored
-
Anton Khirnov authored
-
- 04 Aug, 2014 5 commits
-
-
Vittorio Giovara authored
-
Vittorio Giovara authored
The rationale is that you have a packed format in form <greyscale sample> <alpha sample> <greyscale sample> <alpha sample> and shortening greyscale to 'G' might make one thing about Greenscale instead. An alias pixel format and color space name are provided for compatibility.
-
Vittorio Giovara authored
-
Luca Barbato authored
Signed-off-by:
Vittorio Giovara <vittorio.giovara@gmail.com>
-
Diego Biurrun authored
-
- 03 Aug, 2014 4 commits
-
-
Kieran Kunhya authored
Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
Janne Grunau authored
-
Janne Grunau authored
Add CPU count and number threads as informative values for fate.
-
Janne Grunau authored
libavutil/cpu-test prints raw and effective cpu flags to STDERR. Detected cpu flags can be useful for debugging fate errors. No comparison of the result against a expected result since that would require fate config specific references.
-