Commit 0ef28e11 authored by Clément Bœsch's avatar Clément Bœsch

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

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