Replace depreciated API of FFmpeg, up to date with FFmpeg4.2.
Fix the "no sound output" issue occured with SDL 2.10.
Reorder much of the code, place init code together and add wait loop instead of use getchar() to wait, make the logic much clearer than before.
Replace depreciated API of FFmpeg, up to date with FFmpeg4.2. Fix the "no sound output" issue occured with SDL 2.10. Reorder much of the code, place init code together and add wait loop instead of use getchar() to wait, make the logic much clearer than before.