- 30 Jun, 2012 10 commits
-
-
Ronald S. Bultje authored
-
Ronald S. Bultje authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Ronald S. Bultje authored
This gets rid of a variable-length array and a for loop in C code. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Ronald S. Bultje authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This allows passing the right options to encoders when there's more than one encoder for a certain codec id. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Ronald S. Bultje authored
Mingw headers provide similar defines already (unconditional #defines, without any #undef or #ifdef around it), while MSVC doesn't have them. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
The fallback function is a non-static function, we shouldn't be defining non-static functions outside of the proper ff/av prefix namespaces. This is especially important for a function like poll, which other parties (other libraries, or executables linking these libraries) also might provide similar but incompatible fallbacks for. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
We need to include winsock2.h here, to make sure we have the real pollfd struct definition, if one exists, before defining the fallback poll function. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
The fds are unsigned integers in the windows definition of struct sockfds. Due to this, the comparison if (fds[i].fd > n) was always false. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Ronald S. Bultje authored
io.h is required for open and _wopen, and fcntl.h is required for the O_CREAT flag. On mingw, fcntl.h is included by os_support.h (and the mingw fcntl.h includes io.h), but include it explicitly here since this implementation requires it. Also move the #undef open up. open must not be defined to ff_win32_open while including the headers that declare the open function. On mingw, this happened in os_support.h before open was redirected. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 29 Jun, 2012 5 commits
-
-
Mans Rullgard authored
The problem is that the ssse3 psign instruction does the wrong thing here. Commit ea60dfe2 incorrectly removed a macro emulating this instruction for pre-ssse3 code. However, the emulation is incorrect, and the code relies on the behaviour of the macro. Specifically, the psign sets destination elements to zero where the corresponding source element is zero, whereas the emulation only negates destination elements where the source is negative. Furthermore, the PSIGNW_MMX macro in x86util.asm is totally bogus, which is why the original VC-1 code had an additional right shift when using it. Since the psign instruction cannot be used here, skip all the macro hell and use the working instruction sequence directly. None of this was noticed due a stray return statement in ff_vc1dsp_init_mmx() which meant that only the mmx version of the loop filter was ever used (before being removed in ea60dfe2). Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
Ronald S. Bultje authored
It is included for the open/read/write/close functions. On MSVC, where this header does not exist, the same functions are provided by io.h, which is already included. On windows, these functions are provided by io.h. Make sure io.h is included if it exists, regardless of the setmode function. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Ronald S. Bultje authored
unistd.h is used for open/read/close, but if this header does not exist, there's probably no use in trying to open /dev/*random at all. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Samuel Pitoiset authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Ronald S. Bultje authored
unistd.h used to be required for gethostname. On windows, gethostname is provided by winsock2.h. Now network.h includes both unistd.h and winsock2.h if they exist. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 28 Jun, 2012 3 commits
-
-
Damien Fetis authored
Signed-off-by:
Luca Barbato <lu_zero@gentoo.org>
-
Diego Biurrun authored
-
Luca Barbato authored
-
- 27 Jun, 2012 9 commits
-
-
Alex Converse authored
-
Kostya Shishkov authored
-
Kostya Shishkov authored
-
Christophe Gisquet authored
The function call was a mess to handle, and memcpy cannot make the assumptions we do in the new code. Tested on an IMC sample: 430c -> 370c. Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
Martin Storsjö authored
Based on an original patch by Stephen D'Angelo <SDAngelo@evertz.com>. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Ronald S. Bultje authored
Apparently, some build environments require dxva.h even for dxva2, while others lack this header entirely. Including it conditionally allows building in both cases. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Jordi Ortiz authored
This gives you the proper v4 or v6 version of the "any address", allowing receiving connections on any address on the machine. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Jordi Ortiz authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 26 Jun, 2012 13 commits
-
-
Anton Khirnov authored
The warning silenced was: avconv.c: In function ‘opt_output_file’: avconv.c:3380:21: warning: ‘meta_out’ may be used uninitialized in this function [-Wuninitialized] avconv.c:3315:20: note: ‘meta_out’ was declared here
-
Anton Khirnov authored
The warning silenced was: avconv.c: In function ‘configure_filtergraph’: avconv.c:603:8: warning: ‘ist’ may be used uninitialized in this function [-Wuninitialized] avconv.c:549:18: note: ‘ist’ was declared here
-
Anton Khirnov authored
The warning silenced was: libavfilter/avfiltergraph.c: In function ‘avfilter_graph_config’: libavfilter/avfiltergraph.c:500:13: warning: ‘best_idx’ may be used uninitialized in this function [-Wuninitialized]
-
Anton Khirnov authored
The warning silenced was: libavfilter/af_join.c: In function ‘join_request_frame’: libavfilter/af_join.c:451:9: warning: ‘nb_samples’ may be used uninitialized in this function [-Wuninitialized]
-
Anton Khirnov authored
It is a plain int now.
-
Anton Khirnov authored
-
Anton Khirnov authored
-
Justin Ruggles authored
Changed to match the number of parameters in conv_func_interleave(), which is how they are called. The change isn't strictly necessary because the 4th parameter is not used, but the code is clearer if they match.
-
Mans Rullgard authored
This adds a fallback for cbrtf() using powf(x, 1/3). Since powf() with a non-integer exponent requires a non-negative base, special handling of negative inputs is needed. Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
Ronald S. Bultje authored
Since the errno.h values don't match the error codes that winsock returns, map the winsock error codes to the errno ones, to make sure explicit checks against AVERROR(x) match. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Ronald S. Bultje authored
Apparently this include is needed on some systems for building the poll fallback (for the timeval struct for select?), but it isn't available on all systems. Thus only include it if it exists. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This heaader is required for close() for sockets in network code. For winsock, the equivalent function is defined in the winsock2.h header. This avoids having the HAVE_UNISTD_H in all files dealing with raw sockets. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Anton Khirnov authored
-