fftools/ffplay: 240M matrix is not the same as BT.601

Signed-off-by: Valerii Zapodovnikov <val.zapod.vz@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Valerii Zapodovnikov 2021-06-07 11:02:23 +03:00 committed by Marton Balint
parent 812f39ee85
commit 3249b96342
1 changed files with 2 additions and 2 deletions

View File

@ -965,10 +965,10 @@ static void set_sdl_yuv_conversion_mode(AVFrame *frame)
mode = SDL_YUV_CONVERSION_JPEG;
else if (frame->colorspace == AVCOL_SPC_BT709)
mode = SDL_YUV_CONVERSION_BT709;
else if (frame->colorspace == AVCOL_SPC_BT470BG || frame->colorspace == AVCOL_SPC_SMPTE170M || frame->colorspace == AVCOL_SPC_SMPTE240M)
else if (frame->colorspace == AVCOL_SPC_BT470BG || frame->colorspace == AVCOL_SPC_SMPTE170M)
mode = SDL_YUV_CONVERSION_BT601;
}
SDL_SetYUVConversionMode(mode);
SDL_SetYUVConversionMode(mode); /* FIXME: no support for linear transfer */
#endif
}