Author Topic: MP4 PTS corruption  (Read 4971 times)

jfx

  • Newbie
  • *
  • Posts: 40
MP4 PTS corruption
« on: February 19, 2013, 08:58:12 PM »
The attached patch fixes PTS corruption and other potential bugs when loading MP4 longer than 18 minutes. float is too small for time values measured in microseconds.

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10935
Re: MP4 PTS corruption
« Reply #1 on: February 20, 2013, 05:50:19 AM »
you mean it's not accurate enough ?

jfx

  • Newbie
  • *
  • Posts: 40
Re: MP4 PTS corruption
« Reply #2 on: February 20, 2013, 08:14:32 PM »
float can safely store 24 bits only. This bug causes PTS<DTS errors etc.

mean

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10935
Re: MP4 PTS corruption
« Reply #3 on: February 21, 2013, 10:40:09 AM »
?
Float can store up to +-10^38 big number, but the accuracy is lousy
I'll assume it's a rounding issue