Revision 5a011d8b libswscale/utils.c

View differences:

libswscale/utils.c
1566 1566
    if (!param)
1567 1567
        param = default_param;
1568 1568

  
1569
    if (context) {
1570
        if (context->srcW != srcW || context->srcH != srcH ||
1569
    if (context &&
1570
        (context->srcW != srcW || context->srcH != srcH ||
1571 1571
            context->srcFormat != srcFormat ||
1572 1572
            context->dstW != dstW || context->dstH != dstH ||
1573 1573
            context->dstFormat != dstFormat || context->flags != flags ||
1574
            context->param[0] != param[0] || context->param[1] != param[1])
1574
            context->param[0] != param[0] || context->param[1] != param[1]))
1575 1575
        {
1576 1576
            sws_freeContext(context);
1577 1577
            context = NULL;
1578 1578
        }
1579
    }
1579

  
1580 1580
    if (!context) {
1581 1581
        return sws_getContext(srcW, srcH, srcFormat,
1582 1582
                              dstW, dstH, dstFormat, flags,

Also available in: Unified diff