lavf: Use av_get_audio_frame_duration() in get_audio_frame_size()