This commit fixes an issue that the last audio packet is sometimes not written into mp4 format. Since libavformat internally calculates the packet duration from the frame_size specified in the codec parameter, it is necessary to set frame_size.
This commit fixes an issue that the last audio packet is sometimes not written into mp4 format. Since libavformat internally calculates the packet duration from the frame_size specified in the codec parameter, it is necessary to set frame_size.