From: Jingning Han Date: Thu, 23 Aug 2018 23:51:26 +0000 (-0700) Subject: Set minimum frame size to be 1 byte X-Git-Tag: v1.8.0~374^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bffa4a68b010889c01338304e883b6e7156bf5c8;p=libvpx 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 --- 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