Skip to content

Commit

Permalink
Fix recording video frame size bug
Browse files Browse the repository at this point in the history
Signed-off-by: Leo Ma <[email protected]>
  • Loading branch information
begeekmyfriend committed May 29, 2016
1 parent 3081b38 commit 1d0580e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/net/ossrs/yasea/SrsMp4Muxer.java
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ private void writeSampleData(int trackIndex, ByteBuffer byteBuf, MediaCodec.Buff
if (!isAudio) {
ByteBuffer size = ByteBuffer.allocateDirect(4);
size.position(0);
size.putInt(bufferInfo.size);
size.putInt(bufferInfo.size - 4);
size.position(0);
fc.write(size);
}
Expand Down

0 comments on commit 1d0580e

Please sign in to comment.