summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vp9/simple_encode.cc2
-rw-r--r--vp9/simple_encode.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/vp9/simple_encode.cc b/vp9/simple_encode.cc
index 6bf55c95a..f34df6801 100644
--- a/vp9/simple_encode.cc
+++ b/vp9/simple_encode.cc
@@ -279,7 +279,7 @@ void SimpleEncode::EncodeFrameWithQuantizeIndex(
encode_command_reset_external_quantize_index(&impl_ptr_->cpi->encode_command);
}
-int SimpleEncode::GetCodingFrameNum() {
+int SimpleEncode::GetCodingFrameNum() const {
assert(impl_ptr_->first_pass_stats.size() - 1 > 0);
// These are the default settings for now.
const int multi_layer_arf = 0;
diff --git a/vp9/simple_encode.h b/vp9/simple_encode.h
index 5d6972e7a..f2344a240 100644
--- a/vp9/simple_encode.h
+++ b/vp9/simple_encode.h
@@ -74,7 +74,7 @@ class SimpleEncode {
// Gets the number of coding frames for the video. The coding frames include
// show frame and no show frame.
// This function should be called after ComputeFirstPassStats().
- int GetCodingFrameNum();
+ int GetCodingFrameNum() const;
private:
class EncodeImpl;