to 0, but ffplay checks it before displaying subtitles (ffplay.c:1437).
patch by Björn Axelsson, gecko acc.umu se
Originally committed as revision 17170 to svn://svn.ffmpeg.org/ffmpeg/trunk
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;
int w, h, x, y, rlelen, i;
GetBitContext gb;
+ sub->format = 0;
+
// check that at least header fits
if (buf_size < 27 + 7 * 2 + 4 * 3) {
av_log(avctx, AV_LOG_ERROR, "coded frame too small\n");