Skip to content

Commit

Permalink
Fixed the prores_ks issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Mar 10, 2024
1 parent 678b6fd commit 9d338b8
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions lib/tlIO/FFmpegReadVideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,20 +279,15 @@ namespace tl
case AV_PIX_FMT_YUV444P10LE:
case AV_PIX_FMT_YUV444P12BE:
case AV_PIX_FMT_YUV444P12LE:
_avOutputPixelFormat = AV_PIX_FMT_RGB48;
_info.pixelType = image::PixelType::RGB_U16;
break;
case AV_PIX_FMT_YUV444P16BE:
case AV_PIX_FMT_YUV444P16LE:
if (options.yuvToRGBConversion)
{
_avOutputPixelFormat = AV_PIX_FMT_RGB48;
_info.pixelType = image::PixelType::RGB_U16;
}
else
{
//! \todo Use the _info.layout.endian field instead of
//! converting endianness.
_avOutputPixelFormat = AV_PIX_FMT_YUV444P16LE;
_info.pixelType = image::PixelType::YUV_444P_U16;
}
//! \todo Use the _info.layout.endian field instead of
//! converting endianness.
_avOutputPixelFormat = AV_PIX_FMT_YUV444P16LE;
_info.pixelType = image::PixelType::YUV_444P_U16;
break;
case AV_PIX_FMT_GBR24P:
_avOutputPixelFormat = AV_PIX_FMT_RGB24;
Expand All @@ -312,7 +307,6 @@ namespace tl
case AV_PIX_FMT_YUVA420P:
case AV_PIX_FMT_YUVA422P:
case AV_PIX_FMT_YUVA444P:
//! \todo Support these formats natively.
_avOutputPixelFormat = AV_PIX_FMT_RGBA;
_info.pixelType = image::PixelType::RGBA_U8;
break;
Expand Down

0 comments on commit 9d338b8

Please sign in to comment.