Commit 223f0489 authored by Rupert Swarbrick's avatar Rupert Swarbrick
Browse files

Fix compiler warning in bitstream.c

The write_motion_mode function only uses its "cm" parameter if it
needs to write out global motion information or distinguish between
motion_var and warped_motion. When these are disabled, you get a
compiler warning which this patch silences.

Change-Id: I64d06a150751cd72cf4b50799432f3161ee87938
parent bf828f93
......@@ -496,6 +496,13 @@ static void write_motion_mode(const AV1_COMMON *cm, MACROBLOCKD *xd,
const MODE_INFO *mi, aom_writer *w) {
const MB_MODE_INFO *mbmi = &mi->mbmi;
// The cm parameter is only used with global_motion or with
// motion_var and warped_motion. In other cases, explicitly ignore
// it to avoid a compiler warning.
MOTION_MODE last_motion_mode_allowed =
Supports Markdown
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