Skip to content

Commit

Permalink
Compile both 16BE and 16LE (#292)
Browse files Browse the repository at this point in the history
There is a case where native endian does not match between compile time
and runtime, so we compile both.
  • Loading branch information
mthrok authored Dec 5, 2024
1 parent 599ee08 commit a520ba4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libspdl/core/detail/ffmpeg/conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,8 @@ CPUBufferPtr convert_frames(
case AV_PIX_FMT_GRAY8:
// Technically, not a planer format, but it's the same.
return convert_planer(batch, 1, sizeof(uint8_t), std::move(storage));
case AV_PIX_FMT_GRAY16:
case AV_PIX_FMT_GRAY16BE:
case AV_PIX_FMT_GRAY16LE:
return convert_planer(batch, 1, sizeof(uint16_t), std::move(storage));
case AV_PIX_FMT_RGBA:
return convert_interleaved(batch, 4, std::move(storage));
Expand Down

0 comments on commit a520ba4

Please sign in to comment.