codec/packet: move impl Send closer to the type definition

This commit is contained in:
meh 2015-06-10 22:05:03 +02:00
parent 623f798ca4
commit 9143df44f4

View File

@ -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();