提交 d3778972 编写于 作者: D Diego Biurrun

ac3enc: Fix linking of AC-3 encoder without the E-AC-3 encoder.

The AC-3 encoder unconditionally references some symbols from the E-AC-3
encoder; make those references conditional to fix linking.
上级 c8e9ea43
......@@ -566,7 +566,7 @@ static void apply_channel_coupling(AC3EncodeContext *s)
}
}
if (s->eac3)
if (CONFIG_EAC3_ENCODER && s->eac3)
ff_eac3_set_cpl_states(s);
#endif /* CONFIG_AC3ENC_FLOAT */
}
......@@ -1987,7 +1987,7 @@ static void output_frame(AC3EncodeContext *s, unsigned char *frame)
init_put_bits(&s->pb, frame, AC3_MAX_CODED_FRAME_SIZE);
if (s->eac3)
if (CONFIG_EAC3_ENCODER && s->eac3)
ff_eac3_output_frame_header(s);
else
ac3_output_frame_header(s);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册