lavf/jacosubdec: fix FPE in case timeres is badly set.

pull/59/head
Clément Bœsch 13 years ago
parent 60715511db
commit 0ef28e119e
  1. 3
      libavformat/jacosubdec.c

@ -219,6 +219,9 @@ static int jacosub_read_header(AVFormatContext *s)
break;
case 'T': // ...but must be placed after TIMERES
jacosub->timeres = strtol(p, NULL, 10);
if (!jacosub->timeres)
jacosub->timeres = 30;
else
av_bprintf(&header, "#T %s", p);
break;
}

Loading…
Cancel
Save