Skip to content

Commit 9e40b7b

Browse files
committed
small merge fix
1 parent 682e7cb commit 9e40b7b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/torchcodec/_core/StreamOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct VideoStreamOptions {
4848
// Optional pixel format for video encoding (e.g., "yuv420p", "yuv444p")
4949
// If not specified, uses codec's default format.
5050
std::optional<std::string> pixelFormat;
51-
std::optional<int> crf;
51+
std::optional<double> crf;
5252
std::optional<std::string> preset;
5353
};
5454

src/torchcodec/encoders/_video_encoder.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ def to_tensor(
9292
Returns:
9393
Tensor: The raw encoded bytes as 4D uint8 Tensor.
9494
"""
95-
# Convert preset to string if it's an int
9695
preset_value = str(preset) if isinstance(preset, int) else preset
9796
return _core.encode_video_to_tensor(
9897
frames=self._frames,

0 commit comments

Comments
 (0)