Merge "Modify the buffer size according to the framecounts" into main