Support audio sample formats than S16 when encoding a small last frame.