From 233bcac1caf2d0a674995ce974e995b6d102238d Mon Sep 17 00:00:00 2001 From: Mattia Iavarone Date: Mon, 17 Sep 2018 22:41:45 -0300 Subject: [PATCH] Comments --- .../gles/com/otaliastudios/cameraview/MediaEncoder.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cameraview/src/main/gles/com/otaliastudios/cameraview/MediaEncoder.java b/cameraview/src/main/gles/com/otaliastudios/cameraview/MediaEncoder.java index 629d742d..bb5ca853 100644 --- a/cameraview/src/main/gles/com/otaliastudios/cameraview/MediaEncoder.java +++ b/cameraview/src/main/gles/com/otaliastudios/cameraview/MediaEncoder.java @@ -73,14 +73,12 @@ abstract class MediaEncoder { } /** - * Extracts all pending data from the encoder and forwards it to the muxer. + * Extracts all pending data that was written and encoded into {@link #mMediaCodec}, + * and forwards it to the muxer. *

* If endOfStream is not set, this returns when there is no more data to drain. If it * is set, we send EOS to the encoder, and then iterate until we see EOS on the output. * Calling this with endOfStream set should be done once, right before stopping the muxer. - *

- * We're just using the muxer to get a .mp4 file (instead of a raw H.264 stream). We're - * not recording audio. */ protected void drain(boolean endOfStream) { if (endOfStream) {