There was an error while loading. Please reload this page.
1 parent a7f83c4 commit 647b4abCopy full SHA for 647b4ab
2 files changed
src/libspdl/core/muxer.cpp
@@ -63,6 +63,8 @@ std::string to_str(MediaType media) {
63
return "video";
64
case MediaType::Image:
65
return "image";
66
+ default:
67
+ throw std::domain_error("[INTERNAL ERROR] Unexpected media type.");
68
}
69
70
} // namespace
src/libspdl/cuda/nvdec/detail/utils.cpp
@@ -45,6 +45,8 @@ cudaVideoCodec convert_codec_id(spdl::core::CodecID id) {
45
return cudaVideoCodec_JPEG;
46
case spdl::core::CodecID::AV1:
47
return cudaVideoCodec_AV1;
48
49
+ throw std::domain_error("[INTERNAL ERROR] Unexpected value is provided.");
50
51
52
0 commit comments