diff options
author | Martin Storsjö <martin@martin.st> | 2016-08-01 09:07:48 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2016-08-02 11:32:35 +0300 |
commit | 230b1c070baa3b6d4bd590426a365b843d60ff50 (patch) | |
tree | b4303ae76f1200b806bf248f0d417683db7be2fc /libavcodec/x86/hevcdsp_init.c | |
parent | 014773b66bdff4de24f384066d1a85d2a5bb6774 (diff) | |
download | ffmpeg-230b1c070baa3b6d4bd590426a365b843d60ff50.tar.gz |
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>
Diffstat (limited to 'libavcodec/x86/hevcdsp_init.c')
0 files changed, 0 insertions, 0 deletions