Skip to content

Commit

Permalink
fixed MOV duration
Browse files Browse the repository at this point in the history
  • Loading branch information
0xPoly committed Apr 4, 2015
1 parent 9ef3a7f commit 34009b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ public void run ()
if (mFrameQ.peek() != null)
{
VideoFrame vf = mFrameQ.pop();
muxer.addFrame(mLastWidth/2, mLastHeight/2, ByteBuffer.wrap(vf.image),vf.fps,vf.duration);
muxer.addFrame(mLastWidth/2, mLastHeight/2, ByteBuffer.wrap(vf.image),benchmarkFPS,vf.duration);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void addFrame(int width, int height, ByteBuffer buff, long timeScaleFPS,
audioTrack.addSampleEntry(MP4Muxer.audioSampleEntry(af));
}
// Add packet to video track
videoTrack.addFrame(new MP4Packet(buff, frameNo, timeScaleFPS, duration, frameNo, true, null, frameNo, 0));
videoTrack.addFrame(new MP4Packet(buff, frameNo, timeScaleFPS, 1, frameNo, true, null, frameNo, 0));
frameNo++;
}
public void addAudio (ByteBuffer buffer) throws IOException
Expand Down

0 comments on commit 34009b2

Please sign in to comment.