@@ -43,9 +43,9 @@ TORCH_LIBRARY(torchcodec_ns, m) {
4343  m.def (
4444      " _create_from_file_like(int file_like_context, str? seek_mode=None) -> Tensor" 
4545  m.def (
46-       " _add_video_stream(Tensor(a!) decoder, *, int? num_threads=None, str? dimension_order=None, int? stream_index=None, str device=\" cpu\" , str device_variant=\" default \" , str transform_specs=\"\" , (Tensor, Tensor, Tensor)? custom_frame_mappings=None, str? color_conversion_library=None) -> ()" 
46+       " _add_video_stream(Tensor(a!) decoder, *, int? num_threads=None, str? dimension_order=None, int? stream_index=None, str device=\" cpu\" , str device_variant=\" ffmpeg \" , str transform_specs=\"\" , (Tensor, Tensor, Tensor)? custom_frame_mappings=None, str? color_conversion_library=None) -> ()" 
4747  m.def (
48-       " add_video_stream(Tensor(a!) decoder, *, int? num_threads=None, str? dimension_order=None, int? stream_index=None, str device=\" cpu\" , str device_variant=\" default \" , str transform_specs=\"\" , (Tensor, Tensor, Tensor)? custom_frame_mappings=None) -> ()" 
48+       " add_video_stream(Tensor(a!) decoder, *, int? num_threads=None, str? dimension_order=None, int? stream_index=None, str device=\" cpu\" , str device_variant=\" ffmpeg \" , str transform_specs=\"\" , (Tensor, Tensor, Tensor)? custom_frame_mappings=None) -> ()" 
4949  m.def (
5050      " add_audio_stream(Tensor(a!) decoder, *, int? stream_index=None, int? sample_rate=None, int? num_channels=None) -> ()" 
5151  m.def (" seek_to_pts(Tensor(a!) decoder, float seconds) -> ()" 
@@ -319,7 +319,7 @@ void _add_video_stream(
319319    std::optional<std::string_view> dimension_order = std::nullopt ,
320320    std::optional<int64_t > stream_index = std::nullopt ,
321321    std::string_view device = " cpu" 
322-     std::string_view device_variant = " default " 
322+     std::string_view device_variant = " ffmpeg " 
323323    std::string_view transform_specs = " " 
324324    std::optional<std::tuple<at::Tensor, at::Tensor, at::Tensor>>
325325        custom_frame_mappings = std::nullopt ,
@@ -376,7 +376,7 @@ void add_video_stream(
376376    std::optional<std::string_view> dimension_order = std::nullopt ,
377377    std::optional<int64_t > stream_index = std::nullopt ,
378378    std::string_view device = " cpu" 
379-     std::string_view device_variant = " default " 
379+     std::string_view device_variant = " ffmpeg " 
380380    std::string_view transform_specs = " " 
381381    const  std::optional<std::tuple<at::Tensor, at::Tensor, at::Tensor>>&
382382        custom_frame_mappings = std::nullopt ) {
0 commit comments