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

Rich Felker dalias
Thu Mar 22 21:10:21 CET 2007


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..

> Regarding XXX: is there a reason this isn't simply "const char *enc_name"?
> It'd save a few K on that table.

Dunno the specifics here, but using const char * instead of const
char[] in tables is very bad with shared libaries. It greatly
increases the startup time (relocations) and prevents the tables from
being in shared memory.

Rich




More information about the ffmpeg-devel mailing list