summaryrefslogtreecommitdiff
path: root/libavcodec/dvdsubdec.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/dvdsubdec.c
parentc104a6e90226eaa253aeba471c8859e0da922da7 (diff)
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/dvdsubdec.c')
-rw-r--r--libavcodec/dvdsubdec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c
index 507c1813ff..bb3e124bcd 100644
--- a/libavcodec/dvdsubdec.c
+++ b/libavcodec/dvdsubdec.c
@@ -173,7 +173,6 @@ static int decode_dvd_subtitles(AVSubtitle *sub_header,
if (buf_size < 10)
return -1;
- memset(sub_header, 0, sizeof(*sub_header));
if (AV_RB16(buf) == 0) { /* HD subpicture with 4-byte offsets */
big_offsets = 1;