History

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.

Ramiro Polla committed 2 years ago

Commit b6f72711 parent 3d2fafa1 file · +0 −2Browse files

Unified · Split

libavcodec/x86/mpegvideoenc_template.c+0−2
@@ -99,8 +99,6 @@ static int RENAME(dct_quantize)(MpegEncContext *s, · 98 unmodified lines
9999 const uint16_t *qmat, *bias;
100100 LOCAL_ALIGNED_16(int16_t, temp_block, [64]);
101101
102− av_assert2((7&(uintptr_t)(&temp_block[0])) == 0); //did gcc align it correctly?
103−
104102 //s->fdct (block);
105103 RENAME_FDCT(ff_fdct)(block); // cannot be anything else ...
106104

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t