OSDN Git Service

ffserver: Don't set me_method unconditionally
authorHoward Chu <hyc@highlandsun.com>
Tue, 18 May 2010 11:45:09 +0000 (11:45 +0000)
committerMartin Storsjö <martin@martin.st>
Tue, 18 May 2010 11:45:09 +0000 (11:45 +0000)
Patch by Howard Chu, hyc at highlandsun dot com

Originally committed as revision 23155 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffserver.c

index 628952a..e1116f5 100644 (file)
@@ -3843,6 +3843,7 @@ static void add_codec(FFStream *stream, AVCodecContext *av)
             av->nsse_weight = 8;
 
         av->frame_skip_cmp = FF_CMP_DCTMAX;
+        if (!av->me_method)
         av->me_method = ME_EPZS;
         av->rc_buffer_aggressivity = 1.0;