diff --git a/src/lib.rs b/src/lib.rs index 4e1e94b..ff1fa68 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -385,6 +385,8 @@ impl Drop for Encoder { } } +unsafe impl Send for Encoder {} + // ============================================================================ // Decoder @@ -529,6 +531,8 @@ impl Drop for Decoder { } } +unsafe impl Send for Decoder {} + // ============================================================================ // Packet Analysis @@ -705,6 +709,8 @@ impl Drop for Repacketizer { } } +unsafe impl Send for Repacketizer {} + // To understand why these lifetime bounds are needed, imagine that the // repacketizer keeps an internal Vec<&'buf [u8]>, which is added to by cat() // and accessed by get_nb_frames(), out(), and out_range(). To prove that these