Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-01-27 21:37:40 +0400
committerDiego Biurrun <diego@biurrun.de>2014-03-13 16:50:28 +0400
commit9103185bd116930f90b847090e66a64fa9971ce2 (patch)
tree760c94f6812ed0a1c966243880673708d00f0f65 /libavcodec/dsputil.c
parent49676eb7301e775d08bdbba5380159b106ee258f (diff)
dsputil: Drop ff_check_alignment() function
The function is supposed to confirm that the compiler provided enough alignment, but in practice it is only run in certain code paths and insufficient alignment problems are restricted to legacy compilers.
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r--libavcodec/dsputil.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index 6f44f9a7cc..8dbb18c867 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -29,7 +29,6 @@
#include "libavutil/attributes.h"
#include "libavutil/imgutils.h"
-#include "libavutil/internal.h"
#include "avcodec.h"
#include "copy_block.h"
#include "dct.h"
@@ -2417,30 +2416,8 @@ av_cold void ff_dsputil_static_init(void)
}
}
-int ff_check_alignment(void){
- static int did_fail=0;
- LOCAL_ALIGNED_16(int, aligned, [4]);
-
- if((intptr_t)aligned & 15){
- if(!did_fail){
-#if HAVE_MMX || HAVE_ALTIVEC
- av_log(NULL, AV_LOG_ERROR,
- "Compiler did not align stack variables. Libavcodec has been miscompiled\n"
- "and may be very slow or crash. This is not a bug in libavcodec,\n"
- "but in the compiler. You may try recompiling using gcc >= 4.2.\n"
- "Do not report crashes to Libav developers.\n");
-#endif
- did_fail=1;
- }
- return -1;
- }
- return 0;
-}
-
av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx)
{
- ff_check_alignment();
-
#if CONFIG_ENCODERS
if (avctx->bits_per_raw_sample == 10) {
c->fdct = ff_jpeg_fdct_islow_10;