(&mut self)
| 423 | |
| 424 | impl Drop for AomEncoder { |
| 425 | fn drop(&mut self) { |
| 426 | unsafe { |
| 427 | let result = aom_codec_destroy(&mut self.ctx); |
| 428 | if result != aom_codec_err_t::AOM_CODEC_OK { |
| 429 | panic!("failed to destroy aom codec"); |
| 430 | } |
| 431 | } |
| 432 | } |
| 433 | } |
| 434 | |
| 435 | pub struct EncodeFrames<'a> { |