projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ebab41
)
avcodec/x86/dsputil_init: only use xvid idct for lowres=0
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 1 Jul 2013 18:48:38 +0000
(20:48 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 1 Jul 2013 18:56:37 +0000
(20:56 +0200)
Fixes crash
Fixes Ticket2714
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/x86/dsputil_init.c
patch
|
blob
|
history
diff --git
a/libavcodec/x86/dsputil_init.c
b/libavcodec/x86/dsputil_init.c
index
7b49fd6
..
52d9a6f
100644
(file)
--- a/
libavcodec/x86/dsputil_init.c
+++ b/
libavcodec/x86/dsputil_init.c
@@
-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;