summaryrefslogtreecommitdiff
path: root/libavcodec/wmv2dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-28 21:56:02 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-28 21:59:23 +0100
commit8fc52a5ef94712d900fc8fe7503cf9c9ba635143 (patch)
tree74b4147a7c9ab1d41e22d997bd62426c01b1a325 /libavcodec/wmv2dec.c
parent76e6b1eba1feb5fc9d2ee70962914faff0228db2 (diff)
wmv2: drop non emu edge mode
slightly (~ 0.5%) faster, tested with time ./ffmpeg Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wmv2dec.c')
-rw-r--r--libavcodec/wmv2dec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/wmv2dec.c b/libavcodec/wmv2dec.c
index fccb1bb335..099cc36e5d 100644
--- a/libavcodec/wmv2dec.c
+++ b/libavcodec/wmv2dec.c
@@ -446,6 +446,8 @@ int ff_wmv2_decode_mb(MpegEncContext *s, int16_t block[6][64])
static av_cold int wmv2_decode_init(AVCodecContext *avctx){
Wmv2Context * const w= avctx->priv_data;
+ avctx->flags |= CODEC_FLAG_EMU_EDGE;
+
if(ff_msmpeg4_decode_init(avctx) < 0)
return -1;