I'm following the updated version of the original dranger.com/ffmpeg tutorial at https://github.com/mpenkov/ffmpeg-tutorial
The third step(Source code: https://github.com/mpenkov/ffmpeg-tutorial/blob/master/tutorial03.c) adds sound, but the sound produced is strange. When the audio stream is AAC I only hear static. When the audio stream is MP3 I hear a very high pitched version of the sound.
What's wrong?