Commit 60dca098 authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/ffmpeg/video.c: assume (M)JPEG YUV420 is the same as I420 (we...

* modules/codec/ffmpeg/video.c: assume (M)JPEG YUV420 is the same as I420 (we could convert to have the exact chroma but that would be slower).
parent 7a32c0a2
......@@ -108,10 +108,13 @@ static uint32_t ffmpeg_PixFmtToChroma( int i_ff_chroma )
switch( i_ff_chroma )
{
case PIX_FMT_YUV420P:
case PIX_FMT_YUVJ420P: /* Hacky but better then chroma conversion */
return VLC_FOURCC('I','4','2','0');
case PIX_FMT_YUV422P:
case PIX_FMT_YUVJ422P: /* Hacky but better then chroma conversion */
return VLC_FOURCC('I','4','2','2');
case PIX_FMT_YUV444P:
case PIX_FMT_YUVJ444P: /* Hacky but better then chroma conversion */
return VLC_FOURCC('I','4','4','4');
case PIX_FMT_YUV422:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment