[FFmpeg-devel] [PATCH] add avcodec_get_subtitle_defaults() to initialize AVSubtitle struct

Aurelien Jacobs 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...
Name: 0001-add-avcodec_get_subtitle_defaults-to-initialize-AVSu.patch
Type: text/x-diff
Size: 5324 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110406/fbd87455/attachment.bin>

More information about the ffmpeg-devel mailing list