[Libav-user] SwrContext compile error

wm4 nfxjfg at googlemail.com
Wed Aug 13 13:00:17 CEST 2014


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.


More information about the Libav-user mailing list