comparison dvdsubdec.c @ 8810:367e4d405cd9 libavcodec

Set AVSubtitle format to 0. Neither dvdsubdec nor xsubdec intializes format to 0, but ffplay checks it before displaying subtitles (ffplay.c:1437). patch by Bj«Órn Axelsson, gecko acc.umu se
author diego
date Thu, 12 Feb 2009 01:27:56 +0000
parents 04423b2f6e0b
children 54bc8a2727b0
comparison
equal deleted inserted replaced
8809:425f99bb62df 8810:367e4d405cd9
173 173
174 if (buf_size < 10) 174 if (buf_size < 10)
175 return -1; 175 return -1;
176 sub_header->rects = NULL; 176 sub_header->rects = NULL;
177 sub_header->num_rects = 0; 177 sub_header->num_rects = 0;
178 sub_header->format = 0;
178 sub_header->start_display_time = 0; 179 sub_header->start_display_time = 0;
179 sub_header->end_display_time = 0; 180 sub_header->end_display_time = 0;
180 181
181 if (AV_RB16(buf) == 0) { /* HD subpicture with 4-byte offsets */ 182 if (AV_RB16(buf) == 0) { /* HD subpicture with 4-byte offsets */
182 big_offsets = 1; 183 big_offsets = 1;