Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5f9aaa34 authored by Gopalakrishnan Nallasamy's avatar Gopalakrishnan Nallasamy
Browse files

MPEG4Writer:use 64bit version fallocate/ftruncate

MediaServer runs as 32-bit process(b/126502613).  When MediaRecorder
is used, MPEG4Writer threads run on that process. fallocate(2)'s
parameters off_t offset and off_t len were compiled as 32bit types
which overflows after 2Gibi bytes.  Same happens for ftruncate() too.
Hence, using 64bit version of those functions.

Bug: 158810394

Test: atest android.media.cts.MediaMuxerTest \
        android.mediav2.cts.MuxerTest \
        android.mediav2.cts.MuxerUnitTest \
        android.media.cts.MediaRecorderTest \
        android.mediastress.cts.MediaRecorderStressTest \
        android.mediastress.cts.MediaMuxerStressTest
Change-Id: Ib0e29dc14e7f3b5f2c20c0bf34650ea96107d946
parent 54cc1e3c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment