codec/subtitle: add Subtitle
This commit is contained in:
parent
42564d0d5e
commit
64c6678f04
@ -3,6 +3,8 @@ pub use self::id::Id;
|
||||
|
||||
pub mod packet;
|
||||
|
||||
pub mod subtitle;
|
||||
|
||||
use std::ffi::CStr;
|
||||
use std::str::from_utf8_unchecked;
|
||||
|
||||
|
15
src/codec/subtitle.rs
Normal file
15
src/codec/subtitle.rs
Normal file
@ -0,0 +1,15 @@
|
||||
use std::mem;
|
||||
|
||||
use ffi::*;
|
||||
|
||||
pub struct Subtitle {
|
||||
pub val: AVSubtitle,
|
||||
}
|
||||
|
||||
impl Subtitle {
|
||||
pub fn new() -> Self {
|
||||
unsafe {
|
||||
Subtitle { val: mem::zeroed() }
|
||||
}
|
||||
}
|
||||
}
|
@ -16,3 +16,4 @@ pub use util::frame::{self, Frame};
|
||||
|
||||
pub mod codec;
|
||||
pub use codec::packet::{self, Packet};
|
||||
pub use codec::subtitle::Subtitle;
|
||||
|
Loading…
x
Reference in New Issue
Block a user