Skip to content

Commit

Permalink
use the correct value for infinite keyinterval
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@13045 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 20, 2016
1 parent 8614643 commit 33cc85d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/xpra/codecs/enc_x264/encoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ cdef extern from "../../buffers/buffers.h":
int get_buffer_api_version()

cdef extern from "x264.h":
int X264_KEYINT_MAX_INFINITE

int X264_BUILD

Expand Down Expand Up @@ -531,9 +532,9 @@ cdef class Encoder:
param.i_threads = THREADS
param.b_sliced_threads = SLICED_THREADS
#we never lose frames or use seeking, so no need for regular I-frames:
param.i_keyint_max = 999999
param.i_keyint_max = X264_KEYINT_MAX_INFINITE
#we don't want IDR frames either:
param.i_keyint_min = 999999
param.i_keyint_min = X264_KEYINT_MAX_INFINITE
param.b_intra_refresh = 0 #no intra refresh
param.b_open_gop = 1 #allow open gop
param.b_opencl = self.opencl
Expand Down

0 comments on commit 33cc85d

Please sign in to comment.