aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2024-08-22 03:05:23 +0200
committerRamiro Polla <ramiro.polla@gmail.com>2024-09-03 17:06:19 +0200
commitb6f7271fa914e425142023a7cedff682183a6bf8 (patch)
tree39c50deecaab72aed2e6da7b0ceeaad388092770
parent3d2fafa2294bf0c1570b278c9d7dd8648a155e06 (diff)
downloadffmpeg-b6f7271fa914e425142023a7cedff682183a6bf8.tar.gz
avcodec/x86/mpegvideoenc: remove av_assert2() for variable alignment
It's safe to assume that LOCAL_ALIGNED_16 does indeed align. Otherwise we would have many more problems... This assert was added in f8188626 all the way back in 2003.
-rw-r--r--libavcodec/x86/mpegvideoenc_template.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/x86/mpegvideoenc_template.c b/libavcodec/x86/mpegvideoenc_template.c
index 5f013be7f5..4096d6391f 100644
--- a/libavcodec/x86/mpegvideoenc_template.c
+++ b/libavcodec/x86/mpegvideoenc_template.c
@@ -99,8 +99,6 @@ static int RENAME(dct_quantize)(MpegEncContext *s,
const uint16_t *qmat, *bias;
LOCAL_ALIGNED_16(int16_t, temp_block, [64]);
- av_assert2((7&(uintptr_t)(&temp_block[0])) == 0); //did gcc align it correctly?
-
//s->fdct (block);
RENAME_FDCT(ff_fdct)(block); // cannot be anything else ...