summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingning Han <jingning@google.com>2018-08-23 16:51:26 -0700
committerJingning Han <jingning@google.com>2018-08-31 16:27:04 +0000
commitbffa4a68b010889c01338304e883b6e7156bf5c8 (patch)
tree41e2dbff873b6e945166067b192afb39715df208
parent583ea4d07bef4859fa147b56ae9519b7e4b9d2a4 (diff)
downloadlibvpx-bffa4a68b010889c01338304e883b6e7156bf5c8.tar
libvpx-bffa4a68b010889c01338304e883b6e7156bf5c8.tar.gz
libvpx-bffa4a68b010889c01338304e883b6e7156bf5c8.tar.bz2
libvpx-bffa4a68b010889c01338304e883b6e7156bf5c8.zip
Set minimum frame size to be 1 byte
The show_existing_frame mode still needs to be sent to the decoder. Account for this as 1 byte. This would make the encoder properly update its state. Change-Id: I32a59ccb5d0e02cc6367c1a264b2de72dc1432a7
-rw-r--r--vp9/encoder/vp9_encoder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c
index e1a3fbf06..c4efd9954 100644
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -4950,6 +4950,8 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, size_t *size,
vp9_rc_postencode_update(cpi, *size);
+ *size = VPXMAX(1, *size);
+
#if 0
output_frame_level_debug_stats(cpi);
#endif