Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2014
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. diff --git a/libavformat/stldec.c b/libavformat/stldec.c
  2. index 24ae5bd..a661c8b 100644
  3. --- a/libavformat/stldec.c
  4. +++ b/libavformat/stldec.c
  5. @@ -21,18 +21,19 @@ static int64_t get_pts(const char **buf, int *duration,
  6. {
  7. int hh1, mm1, ss1, ms1;
  8. int hh2, mm2, ss2, ms2;
  9. - if (sscanf(*buf, "%2d:%2d:%2d:%2d , %2d:%2d:%2d:%2d , ",
  10. + if (sscanf(*buf, "%2d:%2d:%2d:%2d , %2d:%2d:%2d:%2d , %*s\n",
  11. &hh1, &mm1, &ss1, &ms1,
  12. &hh2, &mm2, &ss2, &ms2) >= 6) {
  13. +
  14. int64_t start = (hh1*3600LL + mm1*60LL + ss1) * 100LL + ms1;
  15. int64_t end = (hh2*3600LL + mm2*60LL + ss2) * 100LL + ms2;
  16. *duration = end - start;
  17. - *buf += ff_subtitles_next_line(*buf);
  18. return start;
  19. - }
  20. +
  21. + }
  22. *buf += ff_subtitles_next_line(*buf);
  23. -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement