summaryrefslogtreecommitdiff
path: root/libavcodec/snowenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-10 04:43:39 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-10 14:19:56 +0200
commit729108515dc1255e9581926c3c8895314b26edc7 (patch)
tree79e62549324924ee25aa7b0b78d0402ed7847686 /libavcodec/snowenc.c
parent5af621278d458894d20f679194aa028a6f08f65b (diff)
avcodec/snowenc: set dia_size for the first pass of motion estimation too
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snowenc.c')
-rw-r--r--libavcodec/snowenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c
index 1f0460943f..a7de16a358 100644
--- a/libavcodec/snowenc.c
+++ b/libavcodec/snowenc.c
@@ -1654,6 +1654,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
s->m.pict_type = pic->pict_type;
s->m.me_method= s->avctx->me_method;
s->m.me.scene_change_score=0;
+ s->m.me.dia_size = avctx->dia_size;
s->m.flags= s->avctx->flags;
s->m.quarter_sample= (s->avctx->flags & CODEC_FLAG_QPEL)!=0;
s->m.out_format= FMT_H263;