mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
video-raw: set default framerate to 25/1
This commit is contained in:
parent
7c127f91a5
commit
ddcbca3c4b
2 changed files with 8 additions and 8 deletions
|
|
@ -32,8 +32,8 @@
|
|||
#include <spa/video/format.h>
|
||||
#include <lib/props.h>
|
||||
|
||||
#define FRAMES_TO_TIME(this,f) ((this->current_format.info.raw.framerate.num * (f) * SPA_NSEC_PER_SEC) / \
|
||||
(this->current_format.info.raw.framerate.denom))
|
||||
#define FRAMES_TO_TIME(this,f) ((this->current_format.info.raw.framerate.denom * (f) * SPA_NSEC_PER_SEC) / \
|
||||
(this->current_format.info.raw.framerate.num))
|
||||
|
||||
#define STATE_GET_IMAGE_WIDTH(this) this->current_format.info.raw.size.width
|
||||
#define STATE_GET_IMAGE_HEIGHT(this) this->current_format.info.raw.size.height
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue