Skip to content

Commit

Permalink
#800 only enable b-frames with the video region
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@12931 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 28, 2016
1 parent 3751d6f commit 7950702
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/server/window/window_video_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,8 @@ def setup_pipeline_option(self, width, height, src_format,
dst_formats = self.full_csc_modes.get(encoder_spec.encoding)
ve = encoder_spec.make_instance()
options = self.encoding_options.copy()
if encoder_spec.encoding in self.supports_video_b_frames and B_FRAMES:
vr = self.video_subregion
if B_FRAMES and vr.enabled and encoder_spec.encoding in self.supports_video_b_frames:
options["b-frames"] = True
ve.init_context(enc_width, enc_height, enc_in_format, dst_formats, encoder_spec.encoding, quality, speed, encoder_scaling, options)
#record new actual limits:
Expand Down

0 comments on commit 7950702

Please sign in to comment.