Skip to content

Commit

Permalink
Fixed FFmpeg's getWriteInfo to take into account float formats.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Mar 1, 2024
1 parent 296334d commit eeba9f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/tlIO/FFmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,14 @@ namespace tl
case image::PixelType::RGBA_U16:
out.pixelType = info.pixelType;
break;
case image::PixelType::RGB_F16:
case image::PixelType::RGB_F32:
out.pixelType = image::PixelType::RGB_U16;
break;
case image::PixelType::RGBA_F16:
case image::PixelType::RGBA_F32:
out.pixelType = image::PixelType::RGBA_U16;
break;
default: break;
}
return out;
Expand Down

0 comments on commit eeba9f6

Please sign in to comment.