[FFmpeg-devel] [PATCH] fix configure if only AC3 selected
Måns Rullgård
mans
Thu May 13 13:31:25 CEST 2010
Carl Eugen Hoyos <cehoyos at ag.or.at> writes:
> On Thursday 13 May 2010 00:01:55 Justin Ruggles wrote:
>
>> I would rather avoid compiling extra files unnecessarily. Two
>> alternative patches attached. Not sure which, if either, would be the
>> better approach.
>
> Attached is a third possibility.
>
> Please comment, Carl Eugen
> Index: libavcodec/ac3dec.c
> ===================================================================
> --- libavcodec/ac3dec.c (revision 23107)
> +++ libavcodec/ac3dec.c (working copy)
> @@ -1268,7 +1268,7 @@
> }
>
> /* apply spectral extension to high frequency bins */
> - if (s->spx_in_use) {
> + if (s->spx_in_use && CONFIG_EAC3_DECODER) {
> ff_eac3_apply_spectral_extension(s);
> }
This is the smallest patch so far. I like it.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list