From cce8813b76367550ca0a934481ff9263afc09698 Mon Sep 17 00:00:00 2001 From: Hou Qi 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