summaryrefslogtreecommitdiff
path: root/vp8/encoder
diff options
context:
space:
mode:
authoragrange <agrange@google.com>2010-06-18 15:58:18 +0100
committeragrange <agrange@google.com>2010-06-21 15:23:51 +0100
commitdaa5d0eb3d837aefdf30c96c11a1af93566d318d (patch)
tree8d6889de038ac48dfeca1aa6f6624f6f25032ad2 /vp8/encoder
parentd4b99b8e3ae2fe0a92b66cc610e55a64bfc3c9a4 (diff)
downloadlibvpx-daa5d0eb3d837aefdf30c96c11a1af93566d318d.tar
libvpx-daa5d0eb3d837aefdf30c96c11a1af93566d318d.tar.gz
libvpx-daa5d0eb3d837aefdf30c96c11a1af93566d318d.tar.bz2
libvpx-daa5d0eb3d837aefdf30c96c11a1af93566d318d.zip
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
Diffstat (limited to 'vp8/encoder')
-rw-r--r--vp8/encoder/onyx_if.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index 3680b46d6..14adb4ecc 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -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;
if (cpi->gold_is_last)
- cpi->ref_frame_flags &= !VP8_GOLD_FLAG;
+ cpi->ref_frame_flags &= ~VP8_GOLD_FLAG;
if (cpi->alt_is_last)
- cpi->ref_frame_flags &= !VP8_ALT_FLAG;
+ cpi->ref_frame_flags &= ~VP8_ALT_FLAG;
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)