RDKTV-19179: Hisense - AV freeze observed during YouTube Playback Reason for change: demuxer runs out of memory capacity and send EOS. Test Procedure: refer ticket. Risks: None Signed-off-by: sramul630 <sunil_ramulu@comcast.com> Change-Id: I52abfc89da18c5c9d03e1fdb00550bb19a6b2987
diff --git a/src/third_party/starboard/rdk/shared/media/media_get_max_buffer_capacity.cc b/src/third_party/starboard/rdk/shared/media/media_get_max_buffer_capacity.cc index 00aae29..e4dea0c 100644 --- a/src/third_party/starboard/rdk/shared/media/media_get_max_buffer_capacity.cc +++ b/src/third_party/starboard/rdk/shared/media/media_get_max_buffer_capacity.cc
@@ -33,19 +33,11 @@ } if (resolution_width <= 3840 && resolution_height <= 2160) { - if (bits_per_pixel <= 8) { // The maximum amount of memory that will be used to store media buffers - // when video resolution is 4k and bit per pixel is lower than 8. If 0, - // then memory can grow without bound. This must be larger than sum of 4k - // video budget and non-video budget. - return 140 * 1024 * 1024; - } else { - // The maximum amount of memory that will be used to store media buffers - // when video resolution is 4k and bit per pixel is greater than 8. If 0, + // when video resolution is 4k. If 0, // then memory can grow without bound. This must be larger than sum of 4k // video budget and non-video budget. return 210 * 1024 * 1024; - } } // The maximum amount of memory that will be used to store media buffers when