avformat/astenc: Simplify writing padding