Commit daa5d0eb authored by agrange's avatar agrange
Browse files

Changed unary operator from ! to ~

Since the intent is
to reset the appropriate bit in ref_frame_flags not to
test a logic condition. Prior result would always have
been ref_frame_flags being set to 0.
(Issue reported by dgohman, issue 47)

Change-Id: I2c12502ed74c73cf38e98c9680e0249c29e16433
parent d4b99b8e
...@@ -4588,13 +4588,13 @@ static void encode_frame_to_data_rate(VP8_COMP *cpi, unsigned long *size, unsign ...@@ -4588,13 +4588,13 @@ static void encode_frame_to_data_rate(VP8_COMP *cpi, unsigned long *size, unsign
cpi->ref_frame_flags = VP8_ALT_FLAG | VP8_GOLD_FLAG | VP8_LAST_FLAG; cpi->ref_frame_flags = VP8_ALT_FLAG | VP8_GOLD_FLAG | VP8_LAST_FLAG;
if (cpi->gold_is_last) if (cpi->gold_is_last)
cpi->ref_frame_flags &= !VP8_GOLD_FLAG; cpi->ref_frame_flags &= ~VP8_GOLD_FLAG;
if (cpi->alt_is_last) if (cpi->alt_is_last)
cpi->ref_frame_flags &= !VP8_ALT_FLAG; cpi->ref_frame_flags &= ~VP8_ALT_FLAG;
if (cpi->gold_is_alt) if (cpi->gold_is_alt)
cpi->ref_frame_flags &= !VP8_ALT_FLAG; cpi->ref_frame_flags &= ~VP8_ALT_FLAG;
if (cpi->oxcf.error_resilient_mode) if (cpi->oxcf.error_resilient_mode)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment