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/dvdsubdec.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/dvdsubdec.c')
-rw-r--r-- | libavcodec/dvdsubdec.c | 1 |
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; |