mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Fix openh264 decode error caused by yuv stride
This commit is contained in:
@@ -702,7 +702,7 @@ int main() {
|
|||||||
SDL_RenderCopy(sdlRenderer, sdlTexture, NULL, &sdlRect);
|
SDL_RenderCopy(sdlRenderer, sdlTexture, NULL, &sdlRect);
|
||||||
} else {
|
} else {
|
||||||
if (joined) {
|
if (joined) {
|
||||||
ProcessMouseKeyEven(event);
|
// ProcessMouseKeyEven(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ int ScreenCaptureX11::Init(const RECORD_DESKTOP_RECT &rect, const int fps,
|
|||||||
// grabbing frame rate
|
// grabbing frame rate
|
||||||
av_dict_set(&options_, "framerate", "30", 0);
|
av_dict_set(&options_, "framerate", "30", 0);
|
||||||
// Make the grabbed area follow the mouse
|
// Make the grabbed area follow the mouse
|
||||||
// av_dict_set(&options_, "follow_mouse", "centered", 0);
|
av_dict_set(&options_, "follow_mouse", "centered", 0);
|
||||||
// Video frame size. The default is to capture the full screen
|
// Video frame size. The default is to capture the full screen
|
||||||
av_dict_set(&options_, "video_size", "1280x720", 0);
|
av_dict_set(&options_, "video_size", "1280x720", 0);
|
||||||
ifmt_ = (AVInputFormat *)av_find_input_format("x11grab");
|
ifmt_ = (AVInputFormat *)av_find_input_format("x11grab");
|
||||||
|
|||||||
Reference in New Issue
Block a user