summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0117-V4L2VDA-Enlarge-input-buffer-count-to-16.patch
blob: 7d962d694787a507d4fb5711265acd9fa3514805 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From cce8813b76367550ca0a934481ff9263afc09698 Mon Sep 17 00:00:00 2001
From: Hou Qi <qi.hou@nxp.com>
Date: Thu, 15 Sep 2022 18:12:55 +0800
Subject: [PATCH 17/17] V4L2VDA: Enlarge input buffer count to 16

Some stream can decode one frame only after queuing over 8 buffers.
So enlarge input buffer count to 16 to avoid such stream cannot play.

Upstream-Status: Inappropriate [NXP specific]
---
 media/gpu/v4l2/v4l2_video_decode_accelerator.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media/gpu/v4l2/v4l2_video_decode_accelerator.h b/media/gpu/v4l2/v4l2_video_decode_accelerator.h
index d16ee5857785b..5724a972ce4f3 100644
--- a/media/gpu/v4l2/v4l2_video_decode_accelerator.h
+++ b/media/gpu/v4l2/v4l2_video_decode_accelerator.h
@@ -145,7 +145,7 @@ class MEDIA_GPU_EXPORT V4L2VideoDecodeAccelerator
  private:
   // These are rather subjectively tuned.
   enum {
-    kInputBufferCount = 8,
+    kInputBufferCount = 16,
     // TODO(posciak): determine input buffer size based on level limits.
     // See http://crbug.com/255116.
     // Input bitstream buffer size for up to 1080p streams.
-- 
2.17.1