1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
FFmpeg/libavutil
Martin Storsjö 230b1c070b intreadwrite: Add intermediate variables in the byteswise AV_W*() macros
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>
2016-08-02 11:32:35 +03:00
..
aarch64 arm64: add cycle counter support 2015-12-14 16:42:35 +01:00
arm arm: Check for support for the .fpu directive 2016-07-21 12:52:10 +03:00
avr32 cosmetics: Fix spelling mistakes 2016-05-04 18:16:21 +02:00
bfin
mips
ppc
sh4
tests xtea-test: Use struct allocation functions from the API 2016-05-19 09:55:55 +02:00
tomi
x86 x86: cpu: Detect Conroe CPUs and their slow shuffle unit 2016-07-20 18:43:28 +02:00
.gitignore Split global .gitignore file into per-directory files 2016-05-13 14:55:56 +02:00
adler32.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
adler32.h
aes.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
aes.h
atomic_gcc.h
atomic_suncc.h cosmetics: Drop empty comment lines 2016-02-18 15:35:30 +01:00
atomic_win32.h
atomic.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
atomic.h
attributes.h libavutil: Always use some GCC style attributes on clang 2016-07-21 12:52:19 +03:00
audio_fifo.c
audio_fifo.h
avassert.h cosmetics: Fix spelling mistakes 2016-05-04 18:16:21 +02:00
avstring.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
avstring.h
avutil.h cosmetics: Fix spelling mistakes 2016-05-04 18:16:21 +02:00
base64.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
base64.h
blowfish.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
blowfish.h
bswap.h
buffer_internal.h buffer: add support for pools using caller data in allocation 2016-02-14 21:24:39 +01:00
buffer.c buffer: add support for pools using caller data in allocation 2016-02-14 21:24:39 +01:00
buffer.h buffer: drop a reference to a non-existing function from the docs 2016-03-07 13:57:10 +01:00
channel_layout.c
channel_layout.h
colorspace.h colorspace: Add support for BT709 2016-05-10 11:30:25 +02:00
common.h lavu: add AV_CEIL_RSHIFT and use it in various places 2016-01-11 15:32:56 -05:00
cpu_internal.h
cpu.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
cpu.h x86: Add SSSE3_SLOW CPU flag and related convenience macros 2016-07-20 18:43:28 +02:00
crc.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
crc.h
des.c tests: Move all test programs to a subdirectory 2016-05-13 14:55:56 +02:00
des.h
dict.c
dict.h cosmetics: Fix spelling mistakes 2016-05-04 18:16:21 +02:00
display.c
display.h
downmix_info.c
downmix_info.h
error.c
error.h
eval.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
eval.h
fifo.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
fifo.h
file_open.c
file.c
file.h
float_dsp.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
float_dsp.h
frame.c lavc: export the timestamps when decoding in AVFrame.pts 2016-06-21 19:54:42 +02:00
frame.h lavc: export the timestamps when decoding in AVFrame.pts 2016-06-21 19:54:42 +02:00
hmac.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
hmac.h
hwcontext_cuda.c hwcontext_cuda: implement device creation 2016-05-26 15:40:33 +02:00
hwcontext_cuda.h hwcontext: add a CUDA implementation 2016-02-14 22:08:33 +01:00
hwcontext_dxva2.c hwcontext_dxva2: add support for p010 2016-07-02 09:39:24 +02:00
hwcontext_dxva2.h hwcontext: add a dxva2 implementation 2016-05-17 09:11:25 +02:00
hwcontext_internal.h hwcontext: add a QSV implementation 2016-06-21 19:53:37 +02:00
hwcontext_qsv.c hwcontext_qsv: add support for p010 2016-07-03 09:13:29 +02:00
hwcontext_qsv.h hwcontext: add a QSV implementation 2016-06-21 19:53:37 +02:00
hwcontext_vaapi.c hwcontext_vaapi: Add driver quirks to the hwdevice 2016-07-02 14:09:54 +01:00
hwcontext_vaapi.h hwcontext_vaapi: Add driver quirks to the hwdevice 2016-07-02 14:09:54 +01:00
hwcontext_vdpau.c hwcontext_vdpau: implement device creation 2016-05-26 15:40:33 +02:00
hwcontext_vdpau.h hwcontext: add a VDPAU implementation 2016-02-14 22:06:04 +01:00
hwcontext.c hwcontext: allocate the destination frame for the pool size 2016-06-28 08:31:28 +02:00
hwcontext.h hwcontext: clarify the behaviour of transfer_data() for cropped frames 2016-06-28 08:30:59 +02:00
imgutils.c lavu: add AV_CEIL_RSHIFT and use it in various places 2016-01-11 15:32:56 -05:00
imgutils.h
internal.h libavutil: move FFALIGN macro from common.h to macros.h 2015-12-14 16:16:55 +01:00
intfloat.h
intmath.c
intmath.h
intreadwrite.h intreadwrite: Add intermediate variables in the byteswise AV_W*() macros 2016-08-02 11:32:35 +03:00
lfg.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
lfg.h
libavutil.v build: Change structure of the linker version script templates 2016-05-29 16:43:11 +02:00
libm.h
lls.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
lls.h libavutil: move FFALIGN macro from common.h to macros.h 2015-12-14 16:16:55 +01:00
log2_tab.c
log.c
log.h
lzo.c
lzo.h
macros.h libavutil: move FFALIGN macro from common.h to macros.h 2015-12-14 16:16:55 +01:00
Makefile hwcontext: add a QSV implementation 2016-06-21 19:53:37 +02:00
mathematics.c
mathematics.h
md5.c cosmetics: Fix spelling mistakes 2016-05-04 18:16:21 +02:00
md5.h
mem.c
mem.h libavutil: Always use some GCC style attributes on clang 2016-07-21 12:52:19 +03:00
opt.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
opt.h cosmetics: Fix spelling mistakes 2016-05-04 18:16:21 +02:00
parseutils.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
parseutils.h
pixdesc.c pixfmt: add P010 pixel format 2016-07-02 09:35:23 +02:00
pixdesc.h pixdesc: Use AV_CEIL_RSHIFT in documentation 2016-01-25 12:02:20 -05:00
pixfmt.h pixfmt: add P010 pixel format 2016-07-02 09:35:23 +02:00
random_seed.c cosmetics: Fix spelling mistakes 2016-05-04 18:16:21 +02:00
random_seed.h
rational.c
rational.h
rc4.c
rc4.h
replaygain.h cosmetics: Drop empty comment lines 2016-02-18 15:35:30 +01:00
samplefmt.c
samplefmt.h cosmetics: Drop empty comment lines 2016-02-18 15:35:30 +01:00
sha.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
sha.h
stereo3d.c stereo3d: Add API to get name from value or value from name 2016-05-17 12:25:27 -04:00
stereo3d.h stereo3d: Add API to get name from value or value from name 2016-05-17 12:25:27 -04:00
thread.h
time_internal.h
time.c
time.h
timer.h arm64: add cycle counter support 2015-12-14 16:42:35 +01:00
tree.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
tree.h
utils.c
version.h x86: Add SSSE3_SLOW CPU flag and related convenience macros 2016-07-20 18:43:28 +02:00
wchar_filename.h
xtea.c build: Split test programs off into separate files 2016-04-07 16:14:42 +02:00
xtea.h