Revision 337a2a45

View differences:

libswscale/swscale.c
2959 2959
                                        int dstW, int dstH, int dstFormat, int flags,
2960 2960
                                        SwsFilter *srcFilter, SwsFilter *dstFilter, double *param)
2961 2961
{
2962
    static const double default_param[2] = {SWS_PARAM_DEFAULT, SWS_PARAM_DEFAULT};
2963

  
2964
    if (!param)
2965
        param = default_param;
2966

  
2962 2967
    if (context != NULL) {
2963 2968
        if ((context->srcW != srcW) || (context->srcH != srcH) ||
2964 2969
            (context->srcFormat != srcFormat) ||
2965 2970
            (context->dstW != dstW) || (context->dstH != dstH) ||
2966 2971
            (context->dstFormat != dstFormat) || (context->flags != flags) ||
2967
            (context->param != param))
2972
            (context->param[0] != param[0]) || (context->param[1] != param[1]))
2968 2973
        {
2969 2974
            sws_freeContext(context);
2970 2975
            context = NULL;

Also available in: Unified diff