Differentiate stride align between encoding and decoding
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
c8ae6a3ba3
commit
0c3ccb3f60
3 changed files with 6 additions and 6 deletions
|
|
@ -49,7 +49,7 @@ use scrap::{
|
|||
};
|
||||
|
||||
use crate::{
|
||||
common::{self, is_keyboard_mode_supported, STRIDE_ALIGN},
|
||||
common::{self, is_keyboard_mode_supported, STRIDE_ALIGN_RGBA_OUTPUT},
|
||||
server::video_service::{SCRAP_X11_REF_URL, SCRAP_X11_REQUIRED},
|
||||
};
|
||||
|
||||
|
|
@ -944,7 +944,7 @@ impl VideoHandler {
|
|||
}
|
||||
match &vf.union {
|
||||
Some(frame) => {
|
||||
let res = self.decoder.handle_video_frame(frame, STRIDE_ALIGN, ImageFormat::ARGB, &mut self.rgb);
|
||||
let res = self.decoder.handle_video_frame(frame, STRIDE_ALIGN_RGBA_OUTPUT, ImageFormat::ARGB, &mut self.rgb);
|
||||
if self.record {
|
||||
self.recorder
|
||||
.lock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue