Change enable_ref_short_signaling to bool type
Based on the usage of enable_ref_short_signaling, it's better to define
it as boolean instead of int.
Change-Id: I8dcf4c4ab522050682be1d81c32d89a789fbf5ef
diff --git a/av1/encoder/bitstream.c b/av1/encoder/bitstream.c
index 0b74f2f..3f159c0 100644
--- a/av1/encoder/bitstream.c
+++ b/av1/encoder/bitstream.c
@@ -2765,7 +2765,7 @@
}
static int check_frame_refs_short_signaling(AV1_COMMON *const cm,
- int enable_ref_short_signaling) {
+ bool enable_ref_short_signaling) {
// In rtc case when res < 360p and speed >= 9, we turn on
// frame_refs_short_signaling if it won't break the decoder.
if (enable_ref_short_signaling) {
@@ -3038,10 +3038,10 @@
#endif // FRAME_REFS_SHORT_SIGNALING
if (current_frame->frame_refs_short_signaling) {
- // In rtc case when cpi->sf.rt_sf.enable_ref_short_signaling is 1, we
- // turn on frame_refs_short_signaling when the current frame
- // and golden frame are in the same order_hint group,
- // and their relative distance is <= 64 (in order to be decodable).
+ // In rtc case when cpi->sf.rt_sf.enable_ref_short_signaling is true,
+ // we turn on frame_refs_short_signaling when the current frame and
+ // golden frame are in the same order_hint group, and their relative
+ // distance is <= 64 (in order to be decodable).
// For other cases, an example solution for encoder-side
// implementation on frame_refs_short_signaling is also provided in