aboutsummaryrefslogtreecommitdiffstats
path: root/src/media
diff options
context:
space:
mode:
authorbasisbit <basisbit@b956fd51-792f-4845-bead-9b4dfca2ff2c>2015-10-19 20:51:20 +0000
committerbasisbit <basisbit@b956fd51-792f-4845-bead-9b4dfca2ff2c>2015-10-19 20:51:20 +0000
commitfea48eb20937c681bc574b0d49a0c9e4197310fe (patch)
tree9da144d355e0bab639706743616ff5d02ba38ac9 /src/media
parentb4f5555b3f7319e9d9e712345f577411b0f5fd34 (diff)
downloadusdx-fea48eb20937c681bc574b0d49a0c9e4197310fe.tar.gz
usdx-fea48eb20937c681bc574b0d49a0c9e4197310fe.tar.xz
usdx-fea48eb20937c681bc574b0d49a0c9e4197310fe.zip
* some additional logging when switching between background, visualization and video in USreenSing
* pass the low-latency flag to ffmpeg (this lowers the framerate on certain hardware. -> also use the fast-flag to compensate the lower framerate. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3149 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/media')
-rw-r--r--src/media/UVideo.pas4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/media/UVideo.pas b/src/media/UVideo.pas
index b8bd14a0..b8698359 100644
--- a/src/media/UVideo.pas
+++ b/src/media/UVideo.pas
@@ -394,7 +394,9 @@ begin
// error resilience strategy (careful/compliant/agressive/very_aggressive)
//fCodecContext^.error_resilience := FF_ER_CAREFUL; //FF_ER_COMPLIANT;
// allow non spec compliant speedup tricks.
- //fCodecContext^.flags2 := fCodecContext^.flags2 or CODEC_FLAG2_FAST;
+
+ fCodecContext^.flags2 := CODEC_FLAG2_FAST;
+ fCodecContext^.flags := CODEC_FLAG_LOW_DELAY;
// Note: avcodec_open() and avcodec_close() are not thread-safe and will
// fail if called concurrently by different threads.