diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2011-04-05 09:04:48 +0200 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2011-04-11 23:27:50 +0200 |
commit | 3ee8ca9b0894df3aaf5086c643283cb58ef9763d (patch) | |
tree | 1c2d8e25bdd43f3c791199a74d0db297041147fb /libavcodec/assdec.c | |
parent | c104a6e90226eaa253aeba471c8859e0da922da7 (diff) | |
download | ffmpeg-3ee8ca9b0894df3aaf5086c643283cb58ef9763d.tar.gz |
add avcodec_get_subtitle_defaults() to initialize AVSubtitle struct
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.
Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
Diffstat (limited to 'libavcodec/assdec.c')
-rw-r--r-- | libavcodec/assdec.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/assdec.c b/libavcodec/assdec.c index c1ad0c4af4..024127a042 100644 --- a/libavcodec/assdec.c +++ b/libavcodec/assdec.c @@ -38,8 +38,6 @@ static int ass_decode_frame(AVCodecContext *avctx, void *data, int *got_sub_ptr, const char *ptr = avpkt->data; int len, size = avpkt->size; - ff_ass_init(data); - while (size > 0) { len = ff_ass_add_rect(data, ptr, 0, 0/* FIXME: duration */, 1); if (len < 0) |