Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/libavformat/stldec.c b/libavformat/stldec.c
- index 24ae5bd..a661c8b 100644
- --- a/libavformat/stldec.c
- +++ b/libavformat/stldec.c
- @@ -21,18 +21,19 @@ static int64_t get_pts(const char **buf, int *duration,
- {
- int hh1, mm1, ss1, ms1;
- int hh2, mm2, ss2, ms2;
- - if (sscanf(*buf, "%2d:%2d:%2d:%2d , %2d:%2d:%2d:%2d , ",
- + if (sscanf(*buf, "%2d:%2d:%2d:%2d , %2d:%2d:%2d:%2d , %*s\n",
- &hh1, &mm1, &ss1, &ms1,
- &hh2, &mm2, &ss2, &ms2) >= 6) {
- +
- int64_t start = (hh1*3600LL + mm1*60LL + ss1) * 100LL + ms1;
- int64_t end = (hh2*3600LL + mm2*60LL + ss2) * 100LL + ms2;
- *duration = end - start;
- - *buf += ff_subtitles_next_line(*buf);
- return start;
- - }
- +
- + }
- *buf += ff_subtitles_next_line(*buf);
- -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement