[Ffmpeg-devel] [PATCH] rtp.h warning

Glenn Maynard glenn
Thu Mar 22 21:24:32 CET 2007


On Thu, Mar 22, 2007 at 03:10:21PM -0500, Rich Felker wrote:
> On Thu, Mar 22, 2007 at 02:12:05PM -0400, Glenn Maynard wrote:
> > rtp.h generates this in VC:
> > 
> > include\ffmpeg\rtp.h(99) : warning C4510: 'avcodec::AVRtpPayloadType_s' :
> > default constructor could not be generated
> > warning C4610: struct 'avcodec::AVRtpPayloadType_s' can never be
> > instantiated - user defined constructor required
> 
> This is C code, not C++ code. Of course it should not be expected to
> compile as C++ code..

It's a C library; the external headers should compile in C++ code.  This
is a warning the user application is getting when including the headers,
not from compiling the library itself--it doesn't compile directly in VC
anyway.

(The warning is wrong, even in C++, but the oddity that's triggering it
seems reasonable to fix anyway, unless those other fields really are
meaant to be non-const.)

-- 
Glenn Maynard




More information about the ffmpeg-devel mailing list