Commit b7466567 authored by reimar's avatar reimar

Simplify initialization of AVSubtitle by using memset.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19643 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 466f7d74
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment