If the audio is slightly ahead of the video, you can use the -itsoffset command to delay one of the streams.