@@ -44,8 +44,8 @@ static void check_lumConvertRange(int from)
if (sws_init_context(ctx, NULL, NULL) < 0)
fail();
- ctx->srcFormat = from ? AV_PIX_FMT_YUVJ444P : AV_PIX_FMT_YUV444P;
- ctx->dstFormat = from ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_YUVJ444P;
+ ctx->srcFormat = AV_PIX_FMT_YUV444P;
+ ctx->dstFormat = AV_PIX_FMT_YUV444P;
ctx->srcRange = from;
ctx->dstRange = !from;
@@ -88,8 +88,8 @@ static void check_chrConvertRange(int from)
if (sws_init_context(ctx, NULL, NULL) < 0)
fail();
- ctx->srcFormat = from ? AV_PIX_FMT_YUVJ444P : AV_PIX_FMT_YUV444P;
- ctx->dstFormat = from ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_YUVJ444P;
+ ctx->srcFormat = AV_PIX_FMT_YUV444P;
+ ctx->dstFormat = AV_PIX_FMT_YUV444P;
ctx->srcRange = from;
ctx->dstRange = !from;