mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-29 04:17:06 +08:00
Fix XvMC. XvMCCreateBlocks() may not allocate 16-byte aligned blocks,
so we can't use SSE-optimized routines. Originally committed as revision 21011 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -2596,7 +2596,9 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
|
|||||||
c->add_pixels_clamped = add_pixels_clamped_mmx;
|
c->add_pixels_clamped = add_pixels_clamped_mmx;
|
||||||
c->clear_block = clear_block_mmx;
|
c->clear_block = clear_block_mmx;
|
||||||
c->clear_blocks = clear_blocks_mmx;
|
c->clear_blocks = clear_blocks_mmx;
|
||||||
if (mm_flags & FF_MM_SSE){
|
if ((mm_flags & FF_MM_SSE) &&
|
||||||
|
!(CONFIG_MPEG_XVMC_DECODER && avctx->xvmc_acceleration > 1)){
|
||||||
|
/* XvMCCreateBlocks() may not allocate 16-byte aligned blocks */
|
||||||
c->clear_block = clear_block_sse;
|
c->clear_block = clear_block_sse;
|
||||||
c->clear_blocks = clear_blocks_sse;
|
c->clear_blocks = clear_blocks_sse;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user