Loggytronic Forum

VOMP => VOMP General / MVP => Topic started by: alex on April 07, 2014, 22:47:01

Title: Fix for block position overflow with large recordings
Post by: alex 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
Title: Re: Fix for block position overflow with large recordings
Post by: EarleK on May 22, 2017, 06:53:32
Hi there,

to avoid splitting of recordings I take Anvarol daily (http://www.marinemammalconservancy.org/) 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.