mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
vpx: Fix the check to unfixed/unknown framerate to set bitrate
0/1 means unknown framerate not X/0 (which is illegal). Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/782>
This commit is contained in:
parent
b4a713ff2d
commit
e0b708ea4a
1 changed files with 1 additions and 1 deletions
|
@ -877,7 +877,7 @@ gst_vpx_enc_set_auto_bitrate (GstVPXEnc * encoder)
|
||||||
guint target_bitrate;
|
guint target_bitrate;
|
||||||
guint fps_n, fps_d;
|
guint fps_n, fps_d;
|
||||||
|
|
||||||
if (GST_VIDEO_INFO_FPS_D (&encoder->input_state->info) != 0) {
|
if (GST_VIDEO_INFO_FPS_N (&encoder->input_state->info) != 0) {
|
||||||
fps_n = GST_VIDEO_INFO_FPS_N (&encoder->input_state->info);
|
fps_n = GST_VIDEO_INFO_FPS_N (&encoder->input_state->info);
|
||||||
fps_d = GST_VIDEO_INFO_FPS_D (&encoder->input_state->info);
|
fps_d = GST_VIDEO_INFO_FPS_D (&encoder->input_state->info);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue