mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
gstvaapiencoder: framerate 0/1 is valid too
Framerate 0/1 is valid, and it is particularly useful for picture encoding, such as jpeg. This patch makes the encoder to admit that framerate. Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> https://bugzilla.gnome.org/show_bug.cgi?id=744042
This commit is contained in:
parent
954037cd24
commit
351496a304
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ check_video_info (GstVaapiEncoder * encoder, const GstVideoInfo * vip)
|
|||
{
|
||||
if (!vip->width || !vip->height)
|
||||
goto error_invalid_resolution;
|
||||
if (!vip->fps_n || !vip->fps_d)
|
||||
if (vip->fps_n < 0 || vip->fps_d <= 0)
|
||||
goto error_invalid_framerate;
|
||||
return GST_VAAPI_ENCODER_STATUS_SUCCESS;
|
||||
|
||||
|
|
Loading…
Reference in a new issue