format/context/ouptut: revert pass muxer options to avformat_write_header"

This reverts commit e04e9da29806271ed4cd956e3084f3b9145c748a.

There's already a function for that, `write_header_with`.
This commit is contained in:
meh 2017-02-25 19:28:02 +01:00
parent b48521108e
commit 8562de8e44

View File

@ -36,11 +36,10 @@ impl Output {
} }
} }
pub fn write_header(&mut self, dictionary: Dictionary) -> Result<Dictionary, Error> { pub fn write_header(&mut self) -> Result<(), Error> {
unsafe { unsafe {
let mut d = dictionary.disown(); match avformat_write_header(self.as_mut_ptr(), ptr::null_mut()) {
match avformat_write_header(self.as_mut_ptr(), &mut d) { 0 => Ok(()),
0 => Ok(Dictionary::own(d)),
e => Err(Error::from(e)), e => Err(Error::from(e)),
} }
} }