allow playback of videos
fix deprecation warnings
check for __linux__ define not LINUX
removed deprecated macro AVCODEC_MAX_AUDIO_FRAME_SIZE