mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-18 07:43:01 +08:00
hwcodec: fix compile error
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
eda5a94e33
commit
b55fc35d83
@ -7,7 +7,7 @@ use hbb_common::{
|
||||
config::HwCodecConfig,
|
||||
lazy_static, log,
|
||||
message_proto::{EncodedVideoFrame, EncodedVideoFrames, Message, VideoFrame},
|
||||
ResultType,
|
||||
ResultType, bytes::Bytes,
|
||||
};
|
||||
use hwcodec::{
|
||||
decode::{DecodeContext, DecodeFrame, Decoder},
|
||||
@ -91,7 +91,7 @@ impl EncoderApi for HwEncoder {
|
||||
let mut frames = Vec::new();
|
||||
for frame in self.encode(frame).with_context(|| "Failed to encode")? {
|
||||
frames.push(EncodedVideoFrame {
|
||||
data: frame.data,
|
||||
data: Bytes::from(frame.data),
|
||||
pts: frame.pts as _,
|
||||
..Default::default()
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user