Revision 9c158e49

View differences:

libswscale/utils.c
1554 1554
            return NULL;
1555 1555
        context->srcW      = srcW;
1556 1556
        context->srcH      = srcH;
1557
        context->srcRange  = handle_jpeg(&srcFormat);
1557 1558
        context->srcFormat = srcFormat;
1558 1559
        context->dstW      = dstW;
1559 1560
        context->dstH      = dstH;
1561
        context->dstRange  = handle_jpeg(&dstFormat);
1560 1562
        context->dstFormat = dstFormat;
1561 1563
        context->flags     = flags;
1562 1564
        context->param[0]  = param[0];
1563 1565
        context->param[1]  = param[1];
1564
        context->srcRange = handle_jpeg(&srcFormat);
1565
        context->dstRange = handle_jpeg(&dstFormat);
1566 1566
        sws_setColorspaceDetails(context, ff_yuv2rgb_coeffs[SWS_CS_DEFAULT], context->srcRange, ff_yuv2rgb_coeffs[SWS_CS_DEFAULT] /* FIXME*/, context->dstRange, 0, 1<<16, 1<<16);
1567 1567
        if (sws_init_context(context, srcFilter, dstFilter) < 0) {
1568 1568
            sws_freeContext(context);

Also available in: Unified diff