fix deprecated CODEC_ID_xxx and AVCODEC_MAX_AUDIO_FRAME_SIZE usage