codec/packet: move impl Send closer to the type definition
This commit is contained in:
parent
623f798ca4
commit
9143df44f4
@ -13,6 +13,8 @@ use ::{Error, format};
|
||||
|
||||
pub struct Packet(AVPacket);
|
||||
|
||||
unsafe impl Send for Packet { }
|
||||
|
||||
impl Packet {
|
||||
pub unsafe fn as_ptr(&self) -> *const AVPacket {
|
||||
&self.0
|
||||
@ -131,8 +133,6 @@ impl Packet {
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl Send for Packet { }
|
||||
|
||||
impl Clone for Packet {
|
||||
fn clone(&self) -> Self {
|
||||
let mut pkt = Packet::empty();
|
||||
|
Loading…
x
Reference in New Issue
Block a user