[FFmpeg-devel] [PATCH 6/7] resample: fix set but unused variable (lfe) warning.

Michael Niedermayer michaelni at gmx.at
Thu Sep 1 02:50:09 CEST 2011


On Thu, Sep 01, 2011 at 02:30:23AM +0200, Clément Bœsch wrote:
> ---
>  libavcodec/resample.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/libavcodec/resample.c b/libavcodec/resample.c
> index 33413db..a324719 100644
> --- a/libavcodec/resample.c
> +++ b/libavcodec/resample.c
> @@ -121,7 +121,7 @@ static void surround_to_stereo(short **output, short *input, int channels, int s
>      short l, r;
>  
>      for (i = 0; i < samples; i++) {
> -        int fl,fr,c,rl,rr,lfe;
> +        int fl,fr,c,rl,rr,lfe av_unused;
>          fl = input[0];

i think its better to remove the lfe variable and the code writing to
it

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110901/caa31c4a/attachment.asc>


More information about the ffmpeg-devel mailing list