summaryrefslogtreecommitdiff
path: root/libavcodec/srtdec.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2011-04-05 09:04:48 +0200
committerAurelien Jacobs <aurel@gnuage.org>2011-04-11 23:27:50 +0200
commit3ee8ca9b0894df3aaf5086c643283cb58ef9763d (patch)
tree1c2d8e25bdd43f3c791199a74d0db297041147fb /libavcodec/srtdec.c
parentc104a6e90226eaa253aeba471c8859e0da922da7 (diff)
downloadffmpeg-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/srtdec.c')
-rw-r--r--libavcodec/srtdec.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/srtdec.c b/libavcodec/srtdec.c
index 701100a96c..aa73f4c7bf 100644
--- a/libavcodec/srtdec.c
+++ b/libavcodec/srtdec.c
@@ -216,8 +216,6 @@ static int srt_decode_frame(AVCodecContext *avctx,
if (avpkt->size <= 0)
return avpkt->size;
- ff_ass_init(sub);
-
while (ptr < end && *ptr) {
ptr = read_ts(ptr, &ts_start, &ts_end, &x1, &y1, &x2, &y2);
if (!ptr)