Author Topic: Fix for block position overflow with large recordings  (Read 1638 times)

Offline alex

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
    • Email
Fix for block position overflow with large recordings
« on: April 07, 2014, 22:47:01 »
Hi there,

to avoid splitting of recordings I run vdr with a relatively large value for MaxVideoFileSize. This lead to issues within RecPlayer::scan and getBlock as fseek and ftell are limited to a file size of 4GB. Replacing them with their fseeko and ftello counterparts fixes this for me - patch attached.

Regards,
Alex

Offline EarleK

  • Jr. Member
  • **
  • Posts: 1
    • View Profile
Re: Fix for block position overflow with large recordings
« Reply #1 on: May 22, 2017, 06:53:32 »
Hi there,

to avoid splitting of recordings I run vdr with a relatively large value for MaxVideoFileSize. This lead to issues within RecPlayer::scan and getBlock as fseek and ftell are limited to a file size of 4GB. Replacing them with their fseeko and ftello counterparts fixes this for me - patch attached.

Excellent thanks for the patch Alex.
« Last Edit: May 23, 2018, 00:08:50 by Chris »