mirror of https://git.ffmpeg.org/ffmpeg.git
Simplify initialization of AVSubtitle by using memset.
Originally committed as revision 19643 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
df47d24501
commit
90ea6fce1e
|
@ -173,11 +173,7 @@ static int decode_dvd_subtitles(AVSubtitle *sub_header,
|
||||||
|
|
||||||
if (buf_size < 10)
|
if (buf_size < 10)
|
||||||
return -1;
|
return -1;
|
||||||
sub_header->rects = NULL;
|
memset(sub_header, 0, sizeof(*sub_header));
|
||||||
sub_header->num_rects = 0;
|
|
||||||
sub_header->format = 0;
|
|
||||||
sub_header->start_display_time = 0;
|
|
||||||
sub_header->end_display_time = 0;
|
|
||||||
|
|
||||||
if (AV_RB16(buf) == 0) { /* HD subpicture with 4-byte offsets */
|
if (AV_RB16(buf) == 0) { /* HD subpicture with 4-byte offsets */
|
||||||
big_offsets = 1;
|
big_offsets = 1;
|
||||||
|
|
Loading…
Reference in New Issue