mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
avcodec/x86/dsputil_init: only use xvid idct for lowres=0
Fixes crash Fixes Ticket2714 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7ebab4159a
commit
b791a0831b
@ -621,7 +621,7 @@ static av_cold void dsputil_init_sse2(DSPContext *c, AVCodecContext *avctx,
|
||||
#if HAVE_SSE2_INLINE
|
||||
const int high_bit_depth = avctx->bits_per_raw_sample > 8;
|
||||
|
||||
if (!high_bit_depth && avctx->idct_algo == FF_IDCT_XVIDMMX) {
|
||||
if (!high_bit_depth && avctx->idct_algo == FF_IDCT_XVIDMMX && avctx->lowres == 0) {
|
||||
c->idct_put = ff_idct_xvid_sse2_put;
|
||||
c->idct_add = ff_idct_xvid_sse2_add;
|
||||
c->idct = ff_idct_xvid_sse2;
|
||||
|
Loading…
Reference in New Issue
Block a user