[FFmpeg-devel] [RFC] AVSubtitles rework

Michael Niedermayer michaelni at gmx.at
Sun Sep 2 21:36:50 CEST 2012


On Sun, Sep 02, 2012 at 09:31:01PM +0200, Nicolas George wrote:
> Le septidi 17 fructidor, an CCXX, Clément Bœsch a écrit :
> > After speaking a little with Nicolas & Alexander yesterday, it appeared
> > that introducing avcodec_get_subtitle_defaults()/avcodec_alloc_subtitle()
> > to avoid ABI problems with sizeof(AVSubtitle) would be the first step in
> > improving the current subtitles situation.
> 
> I wonder if it is necessary to make it a new structure. That would force
> people to realize that something has changed, and allow to add new fields at
> the end without touching the original structure.
> 
> If we decide for a new structure, I suggest to have the first field "int
> struct_size", set to sizeof(struct) by the alloc function. That makes an
> easy and reliable consistency test.

or the first fielf could be a AVClass pointer and a size field could
be added to AVClass

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120902/bb2e1dc8/attachment.asc>


More information about the ffmpeg-devel mailing list