diff --git a/src/format/stream/stream.rs b/src/format/stream/stream.rs index dfd55e0..e03f1ba 100644 --- a/src/format/stream/stream.rs +++ b/src/format/stream/stream.rs @@ -1,7 +1,7 @@ use libc::c_int; use ffi::*; use ::codec::{self, packet}; -use ::{Rational, Discard}; +use ::{Rational, Discard, DictionaryRef}; use super::Disposition; use format::context::common::Context; @@ -90,6 +90,12 @@ impl<'a> Stream<'a> { Rational::from((*self.as_ptr()).avg_frame_rate) } } + + pub fn metadata(&self) -> DictionaryRef { + unsafe { + DictionaryRef::wrap((*self.as_ptr()).metadata) + } + } } impl<'a> PartialEq for Stream<'a> {