mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
812f39ee85
commit
3249b96342
|
@ -965,10 +965,10 @@ static void set_sdl_yuv_conversion_mode(AVFrame *frame)
|
||||||
mode = SDL_YUV_CONVERSION_JPEG;
|
mode = SDL_YUV_CONVERSION_JPEG;
|
||||||
else if (frame->colorspace == AVCOL_SPC_BT709)
|
else if (frame->colorspace == AVCOL_SPC_BT709)
|
||||||
mode = SDL_YUV_CONVERSION_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;
|
mode = SDL_YUV_CONVERSION_BT601;
|
||||||
}
|
}
|
||||||
SDL_SetYUVConversionMode(mode);
|
SDL_SetYUVConversionMode(mode); /* FIXME: no support for linear transfer */
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue