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/dvbsubdec.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/dvbsubdec.c')
-rw-r--r-- | libavcodec/dvbsubdec.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index 457371361c..288e6f51fe 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcodec/dvbsubdec.c @@ -1323,10 +1323,7 @@ static int dvbsub_display_end_segment(AVCodecContext *avctx, const uint8_t *buf, int i; int offset_x=0, offset_y=0; - sub->rects = NULL; - sub->start_display_time = 0; sub->end_display_time = ctx->time_out * 1000; - sub->format = 0; if (display_def) { offset_x = display_def->x; |