Skip to content

Commit dfa5bcb

Browse files
committed
Use string_view
1 parent aa10ed1 commit dfa5bcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/torchcodec/_core/pybind_ops.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ int64_t encode_audio_to_file_like(
4646
uintptr_t data_ptr,
4747
py::list shape,
4848
int64_t sample_rate,
49-
const std::string& format,
49+
std::string_view format,
5050
py::object file_like,
5151
std::optional<int64_t> bit_rate = std::nullopt,
5252
std::optional<int64_t> num_channels = std::nullopt) {

0 commit comments

Comments
 (0)