Use symbolic constant VPX_CBR instead of 1
authorWan-Teh Chang <wtc@google.com>
Tue, 7 Nov 2023 23:47:43 +0000 (15:47 -0800)
committerWan-Teh Chang <wtc@google.com>
Tue, 7 Nov 2023 23:47:43 +0000 (15:47 -0800)
Change-Id: Idae94cfc6d7a882691deeb4fa3ce0015f80ed937

vpxenc.c

index 38d69a1..d20bd3f 100644 (file)
--- a/vpxenc.c
+++ b/vpxenc.c
@@ -883,7 +883,7 @@ static struct stream_state *new_stream(struct VpxEncoderConfig *global,
 
     /* Default lag_in_frames is 0 in realtime mode CBR mode*/
     if (global->deadline == VPX_DL_REALTIME &&
-        stream->config.cfg.rc_end_usage == 1)
+        stream->config.cfg.rc_end_usage == VPX_CBR)
       stream->config.cfg.g_lag_in_frames = 0;
   }