[Libav-user] SwrContext compile error

Xiaofei Yang yxf0605 at gmail.com
Wed Aug 13 13:46:46 CEST 2014


Got it. Thanks


2014-08-13 19:00 GMT+08:00 wm4 <nfxjfg at googlemail.com>:

> On Wed, 13 Aug 2014 11:06:32 +0800
> Xiaofei Yang <yxf0605 at gmail.com> wrote:
>
> > Hi, guys:
> >
> > I'm using SwrContext in my project, when I compile it using gcc, it
> > complains
> >
> >
> > dereferencing pointer to incomplete type
> >
> > av_rescale_rnd(src_nb_samples, *swr_ctx->out_sample_rate*,
> > swr_ctx->in_sample_rate, AV_ROUND_UP);
> >
> > I have include "libswresample/swresample.h"
> >
> > Does anyone know how to fix it?
> >
> > Many thanks
>
> The contents of SwrContext are private to libswsresample (and AFAIK
> always were). Rewrite your code, it's not a huge change to fix it.
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140813/726cd15f/attachment.html>


More information about the Libav-user mailing list