@ -88,7 +88,7 @@ static const AVOption framerate_options[] = {
{ " interp_start " , " point to start linear interpolation " , OFFSET ( interp_start ) , AV_OPT_TYPE_INT , { . i64 = 15 } , 0 , 255 , V | F } ,
{ " interp_end " , " point to end linear interpolation " , OFFSET ( interp_end ) , AV_OPT_TYPE_INT , { . i64 = 240 } , 0 , 255 , V | F } ,
{ " scene " , " scene change level " , OFFSET ( scene_score ) , AV_OPT_TYPE_DOUBLE , { . dbl = 7.0 } , 0 , INT_MAX , V | F } ,
{ " scene " , " scene change level " , OFFSET ( scene_score ) , AV_OPT_TYPE_DOUBLE , { . dbl = 8.2 } , 0 , INT_MAX , V | F } ,
{ " flags " , " set flags " , OFFSET ( flags ) , AV_OPT_TYPE_FLAGS , { . i64 = 1 } , 0 , INT_MAX , V | F , " flags " } ,
{ " scene_change_detect " , " enable scene change detection " , 0 , AV_OPT_TYPE_CONST , { . i64 = FRAMERATE_FLAG_SCD } , INT_MIN , INT_MAX , V | F , " flags " } ,
@ -183,7 +183,7 @@ static double get_scene_score(AVFilterContext *ctx, AVFrame *crnt, AVFrame *next
else
sad = scene_sad16 ( s , ( const uint16_t * ) crnt - > data [ 0 ] , crnt - > linesize [ 0 ] > > 1 , ( const uint16_t * ) next - > data [ 0 ] , next - > linesize [ 0 ] > > 1 , crnt - > height ) ;
mafd = sad / ( crnt - > height * crnt - > width * 3 ) ;
mafd = ( double ) sad * 100.0 / ( crnt - > height * crnt - > width ) / ( 1 < < s - > bitdepth ) ;
diff = fabs ( mafd - s - > prev_mafd ) ;
ret = av_clipf ( FFMIN ( mafd , diff ) , 0 , 100.0 ) ;
s - > prev_mafd = mafd ;