We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Arc<OpenH264>
Rc<OpenH264>
1 parent fddd760 commit 520e7bdCopy full SHA for 520e7bd
video/external/src/decoder/openh264.rs
@@ -5,7 +5,7 @@ use std::fs::File;
5
use std::io::copy;
6
use std::path::{Path, PathBuf};
7
use std::ptr;
8
-use std::sync::Arc;
+use std::rc::Rc;
9
10
use crate::decoder::openh264_sys::{self, videoFormatI420, ISVCDecoder, OpenH264};
11
use crate::decoder::VideoDecoder;
@@ -39,7 +39,7 @@ pub enum OpenH264Error {
39
40
/// OpenH264 codec representation.
41
pub struct OpenH264Codec {
42
- openh264: Arc<OpenH264>,
+ openh264: Rc<OpenH264>,
43
}
44
45
impl OpenH264Codec {
@@ -163,7 +163,7 @@ impl OpenH264Codec {
163
164
165
Ok(Self {
166
- openh264: Arc::new(openh264),
+ openh264: Rc::new(openh264),
167
})
168
169
@@ -197,7 +197,7 @@ pub struct H264Decoder {
197
/// How many bytes are used to store the length of the NALU (1, 2, 3, or 4).
198
length_size: u8,
199
200
201
decoder: *mut ISVCDecoder,
202
203
0 commit comments