I modified the example to account for changes in the new version of FFmpeg. Newer versions of FFmpeg don't always decode frames in AV_SAMPLE_FMT_S16 format. This can cause the audio playback to be distorted when using the current SDL config. I modified to the code to convert frame to AV_SAMPLE_FMT_S16 if they aren't in that format already. You don't have to merge my changes but hopefully this will be useful in case someone else encounters this issue,
I modified the example to account for changes in the new version of FFmpeg. Newer versions of FFmpeg don't always decode frames in AV_SAMPLE_FMT_S16 format. This can cause the audio playback to be distorted when using the current SDL config. I modified to the code to convert frame to AV_SAMPLE_FMT_S16 if they aren't in that format already. You don't have to merge my changes but hopefully this will be useful in case someone else encounters this issue,