mirror of
https://github.com/samsonjs/media.git
synced 2026-03-29 10:05:48 +00:00
Add a comment to explain the input size calculation.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=111833857
This commit is contained in:
parent
c6cdf7e083
commit
b7d5ce366a
1 changed files with 1 additions and 0 deletions
|
|
@ -536,6 +536,7 @@ public class MediaCodecVideoTrackRenderer extends MediaCodecTrackRenderer {
|
|||
// Leave the default max input size.
|
||||
return;
|
||||
}
|
||||
// Estimate the maximum input size assuming three channel 4:2:0 subsampled input frames.
|
||||
int maxInputSize = (maxPixels * 3) / (2 * minCompressionRatio);
|
||||
format.setInteger(android.media.MediaFormat.KEY_MAX_INPUT_SIZE, maxInputSize);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue