aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dvdsubdec.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-08-15 00:52:41 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-08-15 00:52:41 +0000
commit90ea6fce1eb28c5b4fdff5b9e93771243d28d18d (patch)
treede7091cc3654796964803b35f933c1191a10000b /libavcodec/dvdsubdec.c
parentdf47d24501343228c8a489f4647916447fe74580 (diff)
downloadffmpeg-90ea6fce1eb28c5b4fdff5b9e93771243d28d18d.tar.gz
Simplify initialization of AVSubtitle by using memset.
Originally committed as revision 19643 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dvdsubdec.c')
-rw-r--r--libavcodec/dvdsubdec.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c
index b445d3e456..49b0802f58 100644
--- a/libavcodec/dvdsubdec.c
+++ b/libavcodec/dvdsubdec.c
@@ -173,11 +173,7 @@ static int decode_dvd_subtitles(AVSubtitle *sub_header,
if (buf_size < 10)
return -1;
- sub_header->rects = NULL;
- sub_header->num_rects = 0;
- sub_header->format = 0;
- sub_header->start_display_time = 0;
- sub_header->end_display_time = 0;
+ memset(sub_header, 0, sizeof(*sub_header));
if (AV_RB16(buf) == 0) { /* HD subpicture with 4-byte offsets */
big_offsets = 1;