Skip to content

Commit

Permalink
VideoToolbox: Reduce number of video buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Feb 10, 2020
1 parent 28d6cc1 commit 26e44f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mythtv/libs/libmythtv/videobuffers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ uint VideoBuffers::GetNumBuffers(int PixelFormat, int MaxReferenceFrames, bool D
switch (PixelFormat)
{
case FMT_DXVA2: return 30;
case FMT_VTB: return 24;
// It is currrently unclear whether VTB just happy with a smaller buffer size
// or needs reference frames plus headroom - use the latter for now.
case FMT_VTB: return refs + 8;
// Max 16 ref frames, 12 headroom and allocate 2 extra in the VAAPI frames
// context for additional references held by the VPP deinterlacer (i.e.
// prevent buffer starvation in the decoder)
Expand Down

0 comments on commit 26e44f1

Please sign in to comment.