[FFmpeg-devel] [PATCH] add avcodec_get_subtitle_defaults() to initialize AVSubtitle struct
aurel at gnuage.org
Wed Apr 6 00:30:23 CEST 2011
On Tue, Apr 05, 2011 at 06:26:22PM +0200, Reimar Döffinger wrote:
> On Tue, Apr 05, 2011 at 10:04:33AM +0200, Aurelien Jacobs wrote:
> > Call this new function before decode() to replace the custom and
> > inconsistant initialization in various decoders.
> > This function is equivalent to avcodec_get_frame_defaults() for AVFrame.
> Any real reason to make it public?
Not really. I just did it the same way as avcodec_get_frame_defaults().
> We don't have much experience with subtitles yet, so I'd prefer if
> it wasn't public - who knows what kind of issues we might detect
> with it.
Agree. We can make it public when someone need it.
New patch attached with avcodec_get_subtitle_defaults() as a static
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5324 bytes
Desc: not available
More information about the ffmpeg-devel