video-raw: set default framerate to 25/1

This commit is contained in:
David Svensson Fors 2016-11-03 18:38:13 +01:00 committed by Wim Taymans
parent 7c127f91a5
commit ddcbca3c4b
2 changed files with 8 additions and 8 deletions

View file

@ -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