[FFmpeg-devel] [PATCH] lavc/aac: fix shared build failures with MSVC.

Clément Bœsch ubitux at gmail.com
Fri Nov 9 08:07:54 CET 2012


On Thu, Nov 08, 2012 at 07:44:07PM -0800, Ronald S. Bultje wrote:
> Hi,
> 
> On Thu, Nov 8, 2012 at 7:42 PM, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> 
> > On Thu, Nov 8, 2012 at 4:18 PM, Michael Niedermayer <michaelni at gmx.at>wrote:
> >
> >> On Fri, Nov 09, 2012 at 12:09:56AM +0100, Clément Bœsch wrote:
> >> > ---
> >> >  libavcodec/aacenc.c       | 9 ++++++++-
> >> >  libavcodec/libvo-aacenc.c | 9 ++++++++-
> >> >  2 files changed, 16 insertions(+), 2 deletions(-)
> >> >
> >> > diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
> >> > index fe5b84d..22962a3 100644
> >> > --- a/libavcodec/aacenc.c
> >> > +++ b/libavcodec/aacenc.c
> >> > @@ -811,6 +811,13 @@ static const AVClass aacenc_class = {
> >> >      LIBAVUTIL_VERSION_INT,
> >> >  };
> >> >
> >> > +/* duplicated from avpriv_mpeg4audio_sample_rates to avoid shared build
> >> > + * failures */
> >>
> >> please also add such a comment to avpriv_mpeg4audio_sample_rates
> >> or maybe move the 2 lines of sample rates in a header and inlcude that.
> >>
> >> I naively assume that theres no clean solution without duplication
> >>
> >
> > That assumption is wrong.
> >
> 
> More specifically,
> http://fate.libav.org/i686-msvc-10-dll-wine/20121108195907 works fine?
> 

I think libav doesn't have something like ``ffmpeg -help encoder=aac'' to
get the list of the supported samples rates for a given encoder. And one
of the reason is that there is no pointer to
avpriv_mpeg4audio_sample_rates in the AVCodec definition. I heard this was
the cause of the shared build issue under MSVC with FFmpeg, so I'm just
trying to come up with a solution. I took the easy path with the
duplicates, but I'll try to come up with a better patch in the next days.
The main issue being that I can't test if it fixes the problem but that's
another story…

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121109/cbe7bd6b/attachment.asc>


More information about the ffmpeg-devel mailing list