[FFmpeg-devel] [PATCH 2/2] avcodec/x86/vp9dsp_init: Fix mix of declaration and statement

Michael Niedermayer michaelni at gmx.at
Thu May 7 14:55:15 CEST 2015


On Thu, May 07, 2015 at 08:14:14AM -0400, Ronald S. Bultje wrote:
> Hi,
> 
> On Thu, May 7, 2015 at 8:08 AM, Michael Niedermayer <michaelni at gmx.at>
> wrote:
> 
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> >  libavcodec/x86/vp9dsp_init.c |    5 +++--
> >  1 file changed, 3 insertions(+), 2 deletions(-)
> >
> > diff --git a/libavcodec/x86/vp9dsp_init.c b/libavcodec/x86/vp9dsp_init.c
> > index f2ac6e8..979bd93 100644
> > --- a/libavcodec/x86/vp9dsp_init.c
> > +++ b/libavcodec/x86/vp9dsp_init.c
> > @@ -309,10 +309,11 @@ ipred_func(32, tm, avx2);
> >
> >  av_cold void ff_vp9dsp_init_x86(VP9DSPContext *dsp, int bpp)
> >  {
> > +#if HAVE_YASM
> > +    int cpu_flags;
> >      if (bpp != 8) return;
> >
> > -#if HAVE_YASM
> > -    int cpu_flags = av_get_cpu_flags();
> > +    cpu_flags = av_get_cpu_flags();
> >
> >  #define init_fpel(idx1, idx2, sz, type, opt) \
> >      dsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][0][0] = \
> >
> 
> OK.

applied

thanks

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

Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150507/dc8c4566/attachment.asc>


More information about the ffmpeg-devel mailing list