diff --git a/video/rav1e/Cargo.toml b/video/rav1e/Cargo.toml
index f1cf6c24..88a81879 100644
--- a/video/rav1e/Cargo.toml
+++ b/video/rav1e/Cargo.toml
@@ -11,8 +11,7 @@ edition = "2018"
glib = { git = "https://github.com/gtk-rs/gtk-rs" }
gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
gst-video = { package = "gstreamer-video", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_12"] }
-rav1e = { version = "0.3", default-features = false }
-atomic_refcell = "0.1"
+rav1e = { version = "0.4", default-features = false }
once_cell = "1.0"
[dev-dependencies]
diff --git a/video/rav1e/src/rav1enc/imp.rs b/video/rav1e/src/rav1enc/imp.rs
index 11e0b9dd..eb5ad191 100644
--- a/video/rav1e/src/rav1enc/imp.rs
+++ b/video/rav1e/src/rav1enc/imp.rs
@@ -6,7 +6,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-use atomic_refcell::AtomicRefCell;
use glib::subclass;
use glib::subclass::prelude::*;
use gst::gst_debug;
@@ -225,6 +224,7 @@ impl Context {
} else {
rav1e::prelude::FrameTypeOverride::No
},
+ opaque: None,
}),
))
} else {
@@ -261,6 +261,7 @@ impl Context {
} else {
rav1e::prelude::FrameTypeOverride::No
},
+ opaque: None,
}),
))
} else {
@@ -284,7 +285,7 @@ struct State {
}
pub struct Rav1Enc {
- state: AtomicRefCell