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

Commit 07be0313 authored by Chong Zhang's avatar Chong Zhang
Browse files

MediaMuxer: clear file content when writing to existing file

bug: 73546869
Change-Id: I7f38ecef1035f1190effae38634d21a3a18cc09f
parent f8149eb6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -328,6 +328,7 @@ final public class MediaMuxer {
        RandomAccessFile file = null;
        try {
            file = new RandomAccessFile(path, "rws");
            file.setLength(0);
            FileDescriptor fd = file.getFD();
            setUpMediaMuxer(fd, format);
        } finally {