[Ffmpeg-devel] Re: [Ffmpeg-cvslog] r8420 - trunk/libavcodec/dv.c
Roman Shaposhnik
rvs
Sun Mar 25 03:02:03 CEST 2007
On Fri, 2007-03-16 at 00:45 +0100, gpoirier wrote:
> Modified: trunk/libavcodec/dv.c
> ==============================================================================
> --- trunk/libavcodec/dv.c (original)
> +++ trunk/libavcodec/dv.c Fri Mar 16 00:45:20 2007
> @@ -838,7 +838,7 @@ static inline void dv_encode_video_segme
> uint8_t* data;
> uint8_t* ptr;
> int do_edge_wrap;
> - DECLARE_ALIGNED_8(DCTELEM, block[64]);
> + DECLARE_ALIGNED_16(DCTELEM, block[64]);
> EncBlockInfo enc_blks[5*6];
> PutBitContext pbs[5*6];
> PutBitContext* pb;
> @@ -846,7 +846,7 @@ static inline void dv_encode_video_segme
> int vs_bit_size = 0;
> int qnos[5];
>
> - assert((((int)block) & 7) == 0);
> + assert((((int)block) & 15) == 0);
Are you sure this works? I see no way of aligning anything on the
x86 stack for more than 8. And even that is kind of iffy, given
that the x86 ABI mandates an alignment of 4.
Thanks,
Roman.
More information about the ffmpeg-devel
mailing list